what is a generic family?

liunx

Guest
what is this? i got it when validating my site for css

Line : 4 font-family: You are encouraged to offer a generic family as a last alternativeGeneric Family: Mom, dad, two kids. Dad drinks too much and mom is quite a bit too interested in someone she has met at the gym.

For CSS generic family names see <!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS21/fonts.html#value-def-family-name">http://www.w3.org/TR/CSS21/fonts.html#v ... amily-name</a><!-- m --> .Generic font families:

serif
sans-serif
monospace
cursive
fantasy

Specify the appropriate one of these on the end of your font list and if none of the fonts in your list is available then at least a similar style of font will be used.

eg. arial,helvetica,sans-serif will normallydisplay in Arial on PCs and Helvetica on Macs but if neither of those is available at least the font used will still be a sans-serif font.Kool! I was having the same problem with the validator! Now we know!
 
Back
Top