3 ms·
The three paragraphs that follow explain, including > This is why we need browser styles, which provide different defaults from one element to the next. Some e
by minitech 4y ago
The three paragraphs that follow explain, including
> This is why we need browser styles, which provide different defaults from one element to the next. Some elements should be display: block (divs, paragraphs, lists, headings, etc), and some of those elements should have margins on them to improve readability.
If you apply the rule
h1 {
display: initial;
margin: initial;
}
you’ll get an inline h1 with no margin.