Question

In: Computer Science

We went over the format and syntax of CSS. Below, write the correct CSS syntax to make the body of an HTML document the color blue.

We went over the format and syntax of CSS. Below, write the correct CSS syntax to make the body of an HTML document the color blue. Also write what each keyword represents (example: the selector? property? etc.)

Solutions

Expert Solution

CSS Syntax :

  body{

            background-color: blue;

        }

Explanation :

  • Here body is the element selector
  • background-color is the property with value as blue


Related Solutions

CSS Write a document wide style block (include the correct HTML tag) to set all <p>...
CSS Write a document wide style block (include the correct HTML tag) to set all <p> tags to be double spaced and justified (not ragged left / right text)
Given the html below, create css to produce the following illustrated color page output: Red for...
Given the html below, create css to produce the following illustrated color page output: Red for outer paragraph and outer list Green and italic for first inner div paragraph, green for second div paragraph, blue for inner list HTML File <html> <head>       <link rel="stylesheet" type="text/css" href="mystyle98_d.css"> </head> <body>              <p>     I'm a paragraph, what color am I ?      </p>    <ul>      <li id = "fix"> I'm a list item;what color am I? </li>        </ul> <div class = "central1"> <p class ="above">   I'm...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT