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

0 points
about 10 years

11/21 Set the body's "background" to "black""

<!DOCTYPE html>
<head>
<style> 
body{
    text-align : center;
    background : black ;
    color: white;
}
</style>
</head>
<body>
<!-- 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> Hola Mundo </h1>
<p> Hola mi nombre es Brian Britto, futuro ingeniero de software de la UPAO e ingeniero informático de la PUCP </p>
<input type ="email"
    placeholder="Your email">
<input type ="submit">
</body>

Answer 531561e680ff3349510015f7

2 votes

Permalink

You might want to try taking out the spaces you have between your code. This is what my code looks like and my background is black.

<style>
body{
text-align:center;
background:black;
color:white;
}    
</style>
points
Submitted by Roya
about 10 years

1 comments

Alvaro over 9 years

Thank you I had the same problem, but thx :D