+ 3
what is difference between <hr> and </hr> both are working same.
10 Respostas
+ 2
@Alex <hr> is the correct HTML5 variant compared to <hr /> (Which is valid too). The latter is from XHTML.
+ 2
@Memea There's no opening and closing tag for hr, you have to use only one. If you do like this <hr><hr/> the browser will display two lines.
+ 2
so, why are <hr/> <br /> the preferred forms?
+ 1
I think you meant <hr> and <hr /> ? Right?
There is no difference, it is the same tag. Just like <br> and <br />
+ 1
you can use any one for your horizontal lines.
but remember there is no open and close tags for horizontal lines, you either use <hr> or <hr/> just choose one.
0
<hr/> is actually an empty tag. However, this one has a special meaning as it means to break up sections of the code with a horizontal line.
- 3
create horizontal line
- 3
horizontal line
- 3
they are opening and closing tags for a horizontal line. no difference.
- 4
<hr /> is valid html5 <hr> isn't.