Answer the question
In order to leave comments, you need to log in
1) why doesn't the font-weight property work on the body, and 2) why does the line-height property work the same for ul\ol and li selectors?
1) if you set the body selector to the font-weight property with a value, for example, normal, then nothing will change. If you set this property, say, in h1, then the font will look different. Why?
2) why does a property like line-height work the same for both list tag and list item tags?
https://jsfiddle.net/5s2oLp68/11/
Answer the question
In order to leave comments, you need to log in
1. Because y h1
is the default font-weight: bold
2. Because it line-height
is inherited from the parent
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question