This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by heacockantonia
over 8 years

7/21 Set the body's "color" attribute to "white".

Alright so I am trying to set the body color to white and I wrote color:white in my code inside the

<!DOCTYPE html><head><style> body{text-align:center;} body{text-align:center;}</style></head>

<div>;<div style="visibility: hidden"> </div>}{**<body>** text-align:center;}

<!-- I'm a comment. You won't actually see me on the web page.
     You should write your header in the line below me! -->
<h1>Antonia Heacock</h1>
<p>Hello! I am a creative and independent teenager aspiring to study software engineering at the United States Airforce Academy, and become a software engineer or go into Wall Street business without the traditional MBA route at a top teir business University. I enjoy running Cross Country, Track & Field, and I swim for conditioning. I love playing the Sims, partying, and drinking earl grey tea. This is my first Website! :)</p>
<input type="email" placeholder="Email">
<input type="submit">
**body {
text-align:center;
background:black;
color: white;} </body>**

Answer 55ca3985e39efe887200061b

0 votes

Permalink

Hi heacockantonia,

Putting this CSS code:

body { text-align:center; background:black; color: white;}

In with your HTML code is going to cause a problem. All of your CSS code belongs in the <style> ... </style> section.

points
Submitted by Judy
over 8 years