h1 default margin
While inspecting in "Chrome Dev tools" , when i hover over the "li" items , i saw only blue color there i,e contents only but i hover over the h1 element , i saw blue and light orange both colors i,e contents and margin both...why? Please explain , I want to master this concept.
Max Senden23,138 Points
Each browser has its own default styling for HTML elements. It's called the 'user agent stylesheet'. You'll learn about it in detail, and how to "reset it", if you keep following the course. In this particular case the top margin of the H1 pushes down the content box, thus creating the whitespace.
Hope it helps! Max