+ 3

Properties

What is the difference between font style properties and font family properties?

1st Mar 2019, 9:51 PM
Ethan Byle
Ethan Byle - avatar
3 Answers
+ 6
No, but you can use them together like this: p.text { font-family: Georgia; font-style: italic; }
1st Mar 2019, 10:25 PM
Rowsej
Rowsej - avatar
+ 7
font-family is the name of the font you want to use (e.g. cursive, Monospace, Georgia, Arial. etc.). https://www.sololearn.com/learn/CSS/1084/ font-style is the style of the text. Possible values are: normal, italic, and oblique. https://www.sololearn.com/learn/CSS/1086
1st Mar 2019, 9:58 PM
Rowsej
Rowsej - avatar
+ 2
can you put a font-style tag(dont know if that the right vocab) inside a font-family tag
1st Mar 2019, 10:24 PM
Ethan Byle
Ethan Byle - avatar