Hi All,

I am hoping some of you experts might be able to help me. I am a beginner to learning style sheets so please excuse me for being naive.

I was attempting a style sheet format as shown below but when I validated it through W3C it seems to require a background colour with every heading, which I thought, was rather odd.

I was hoping someone might have a look at it and perhaps instruct a few pointers to me about going the correct way about doing a standard compliant style sheet.

I used pt and px perhaps I shouldn't use the two different font sizes?

Would be really grateful for any help on this thank you.


W3C CSS Validator Results for file://localhost/A:\style5.css
To work as intended, your CSS style sheet needs a correct document parse tree. This means you should use valid HTML.

Warnings
URI : file://localhost/A:\style5.css
Line : 3 Level : 1 You have no background-color with your color : .body
Line : 6 Level : 1 You have no background-color with your color : H1
Line : 9 Level : 1 You have no background-color with your color : H2
Line : 12 Level : 1 You have no background-color with your color : H3
Line : 15 Level : 1 You have no background-color with your color : P
Line : 18 Level : 1 You have no background-color with your color : LI
Line : 20 Level : 1 You have no background-color with your color : .subhead
Valid CSS informations
.body {
font-size : 10px;
color : #666666;
font-family : verdana, arial, helvetica, sans-serif;
}
H1 {
font-weight : bold;
font-size : 16pt;
color : #006699;
font-family : verdana, arial, helvetica, sans-serif;
}
H2 {
font-weight : bold;
font-size : 10pt;
color : #666666;
font-family : verdana, arial, helvetica, sans-serif;
}
H3 {
font-weight : bold;
font-size : 9pt;
color : #666666;
font-family : verdana, arial, helvetica, sans-serif;
}
P {
font-size : 10px;
color : #666666;
font-family : verdana, arial, helvetica, sans-serif;
}
LI {
font-size : 10px;
color : #666666;
font-family : verdana, arial, helvetica, sans-serif;
}
.subhead {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #666666;
font-weight : bold;
}