translate this w3c validator slang for me please

liunx

Guest
I don't understand this from the css validator.

Line : 27 font-family: You are encouraged to offer a generic family as a last alternative

this w3c validator link (<!-- m --><a class="postlink" href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.georgelangenberg.com/yoga">http://jigsaw.w3.org/css-validator/vali ... g.com/yoga</a><!-- m -->)

I tried adding 'arial' but that doesn't work

help apreciated, thanx!http://www.w3.org/TR/REC-CSS2/fonts.html#generic-font-familiesSam! I offer five fonts:font-family: "Courier New", Courier, mono, Times New Roman, Bodoni, Garamond,;

if this is no family i dun't know how to alter my style sheetThose aren't default fonts though. If you use Arial as a non-default, use sans-serif as the defualt. The defualt is listed last in your order of font families.Hi Spufi!!!

font-family: "Courier New", Courier, mono; This is my style sheet right now.

I thought I had to alter the order as you say default is the last one:

But than it validates with the same warning as above.

I think it's the use of English the validator uses, or as you like my lack of English to understand how to correct this.

How many fonts makes a family eg. how many fonts should I offer?

:confused: G!It wants you to not offer any i thinkyou have "mono" as the last font in your list, it needs to be "monospace", as per the link I posted previously. As to the order; The first font in the list is the one that will displya unless its not installed on the user's computer. In that case, it will move down the list (left to right), until it finds one it can render. Thus the 5 default fonts(serif, sans-serif, cursive, fantasy, monospace) should always be offered as the final font in the list to ensure that all browsers render the general font you want them to.How many fonts makes a family eg. how many fonts should I offer?
One font makes a family, i.e. font-family:serif; is perfectly fine.

You should offer only what's desired and it should end in one of the generic font families: serif, sans-serif, monospace, etc. In your example it looks like

font-family: "Courier New", Courier, monospace;

would do it.

Oh yea, Ariel is NOT a generic family; that would be sans-serif.thank you all guys!

no faults no warnings in th validator anymore.:)

Cheers George
 
Back
Top