0

Can someone please tell me what is wrong with this?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><link rel="stylesheet" type="text/css" href="main.css" />
</head>
<title></title>
<body>

This is <em>white</em> text on a<strong> black</strong> background



</body>
</html>

body {
background; #000000;
color: #FFFFFF;
}

It's gotta be something simple that I'm overlooking. I'm not a COMPLETE noob to CSS but I'm not advanced either. It's not showing up in any browser that I use. I just get a blank white page.

4
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by Biiim
0

Biiim is correct there. Change to background-color: The browser isn't "understanding" just background: and ignores it and defaults the background color to white and you are making your text white-on-white. If you click and drag the cursor over the page you'd highlight it and then it would be visible because it is there even if you can't see it.

And not that it effects this but put your title tags inside the open and close head tags =0)

2
background; #000000;

is incorrect. There should not be a semicolon after background but instead a colon.

0
background; #000000;

is incorrect. There should not be a semicolon after background but instead a colon.

haha damnit

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.