+ 1

What is difference between font-family and font-style

31st Jan 2017, 7:51 PM
yash shukla tech.
yash shukla tech. - avatar
5 Answers
+ 5
font-family you assign more than one font style. When the browser can't access it it reverts to the next font while with the font-style you set only one font. If it fails to load the browser uses its default font
8th Feb 2017, 4:24 AM
Kelvin Musyoka Musembi
Kelvin Musyoka Musembi - avatar
+ 4
With a font-family you set more than one font to the selected item that could be reverted to should the 1st font fail to load, the 2nd will take it's place and so on while with the font-style you set only one font to selected item with no back up font to revert to. In this case the browser will set it's default font to the selected item should the font fail to load.
31st Jan 2017, 8:24 PM
Benneth Yankey
Benneth Yankey - avatar
+ 2
'font-style' handle 'italic' or 'oblique' variant of a 'font-family' wich handle prioritized list of font family names and/or generic family names: https://developer.mozilla.org/en-US/docs/Web/CSS/font-family https://developer.mozilla.org/en-US/docs/Web/CSS/font-style
31st Jan 2017, 10:05 PM
visph
visph - avatar
+ 1
thank you both to clear my doubts....👈
1st Feb 2017, 5:06 AM
yash shukla tech.
yash shukla tech. - avatar
0
Font family contains the files from html the generic versions. Font famliy is the css version of the fonts typically not found in html.
8th Feb 2017, 2:18 AM
Raheem Steward
Raheem Steward - avatar