what is difference between <hr> and </hr> both are working same.
@Alex <hr> is the correct HTML5 variant compared to <hr /> (Which is valid too). The latter is from XHTML.
@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.
so, why are <hr/> <br /> the preferred forms?
I think you meant <hr> and <hr /> ? Right? There is no difference, it is the same tag. Just like <br> and <br />
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.
<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.
create horizontal line
they are opening and closing tags for a horizontal line. no difference.
<hr /> is valid html5 <hr> isn't.