My guess is that <br>
might be inline and that <hr>
might be block. But I don't really have a clue...
<hr>
is a block level element whereas <br>
is an inline level element.
Additional reference:
<hr>
by the W3C<br>
by the W3C The HR
element is defined to be element of block. It’s also being displayed in its own line like any other block element. Thus HR
is a block element.
The BR
element is defined to be element of special and that is defined to be inline. It’s also not being displayed in its own like like a block element, but just creating a line break. Thus BR
is an inline element.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With