dmi3362018-09-19 02:47:13
dmi336, 2018-09-19 02:47:13

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?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
profesor08, 2018-09-19

1. Because y h1is the default font-weight: bold
2. Because it line-heightis inherited from the parent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question