CSS FONT-WEIGHT
If you want to control the weight of your font ( its thickness ), using font weight is the best way to go about it. We suggest that you only use font-weight in multiples of 100 (e.g. 200, 300, etc) because any less and you probably will not see any difference. The values range from 100(thin)-900(thick).
Example
p {
font-weight: bold
}
Possible Values
normal: Defines normal characters
bold: Defines thick characters
bolder: Defines thicker characters
lighter: Defines lighter characters
100, 200, 300, 400, 500, 600, 700, 800, 900: Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold
3 Responses
why w3c css validator says:
Parse Error bold
when i write:
.gras {
font-weight : bold;
}
(gras is the word in french to say bold)
so, my CSS becomes invalid …
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fgraveyardofpain.free-h.net%2Fhtml%2Fhome.php&lang=en
Because on line 59 of your HTML you have…
Membres actuels :
Which is an invalid HTML style attribute value.
Let me try that again…
<h2><span style=”bold”>Membres actuels : </span><h2>