+ 2

What is the main difference between font-weight and font-style?

I had got only italic one

23rd Sep 2021, 3:35 PM
Samuele Nega
Samuele Nega - avatar
2 Answers
+ 2
Font-weight speficy the thickness of writing and font-style specify the shape and writing style like you said italic etc. Happy coding!
23rd Sep 2021, 3:59 PM
mesarthim - avatar
+ 4
Font-weight is where you decide how thick the strokes of the letters are going to be. Font-style is where you decide whether the text is going to be italics, oblique (faux italics), or neither of these (i.e. roman or normal).
23rd Sep 2021, 3:40 PM
Priyanka Singh
Priyanka Singh - avatar