Computer Science, asked by nihana6666, 5 months ago

A web page is to be created with ‘yellow’ background colour using Inline cascading style and its headings with ‘blue’ background colour using External cascading style. Which of the following codes are to be used?

a)<body =”background-color: yellow;”>

b) <body style=”bg-color :red;”>

c) <body style=”background-color:yellow:”>

d) <link rel=”stylesheet”type=”text/css” href=”style.css”>

e) <link rel=”style.css”type=”text/css” href=”style.sheet”>

Answers

Answered by divyanshu629
0

Answer:

Option (c) and (d)

Explanation:

In option (c), background color of body is set to yellow by inline CSS (using style attribute).

In option (d), the link tag is linking webpage to an external CSS file which might have a rule setting background color of headings of the webpage to blue.

Hence, these codes are to be used to set the styles as given in the question.

Similar questions