html - What is the meaning of font-family? -
i'm beginner in html , css. confused font-family
property.
i declare font-family
follows:
{ font-family:cambria, sans-serif, georgia; }
but when remove sans-serif, georgia
part, visual appearance stays same.
why declare font-family
, how differ font
?
the font
declaration shorthand allowing style font-size
, font-weight
, font-family
, font-variant
, line-height
. in one. (just how background
shorthand background-color
, background-url
, background-image
, several other background-related properties.)
font-family
allows specify initial font, , generic fonts used in case initial font cannot used. in case, cambria
initial font, sans-serif
fallback font style used if user's scheme not have cambria
font, , georgia
used if no sans-serif
fonts exist on user's system.
html css fonts
No comments:
Post a Comment