<hr /> <hr> difference | Sololearn: Learn to code for FREE!

0

<hr /> <hr> difference

hello, what difference <hr /> <hr> <hr/> or anyway same?

6/30/2018 11:04:26 PM

vaxo chachua

22 Answers

New Answer

+3

vaxo chachua The tag doesn't require an end tag, and the slash / is optional in HTML5. You can type it as <hr> just fine.

+4

Edit: Sorry, a typo in the most important part =,= just edited Hey y'all, don't be overdramatic, kk? <hr /> is a self-closing tag. This is a shortened form of <hr> </hr> and is only valid for void content (which is, no content inside) elements. You can find a list of them on w3schools or here: http://xahlee.info/js/html5_non-closing_tag.html

+4

vaxo chachua Sorry for the misunderstanding

+2

there isn't difference only for comfort

+2

hey guys I think that's enough please

+2

For the last time vaxo chachua The tags <hr /> <hr> and <hr/> are not valid closing tags The opening tag is <hr> The closing tag is </hr> Them three you mentioned are not the same as they do not work as a closing tag Please remember ‘/‘ comes first then the tag name Naty only copied their last response to your previous deleted post as this one is very similar Stop complaining please Vaxo Thank you

+2

thanks nguyen, if i don't close this tag it's still working and can continue writing.. then what matter i will close or not? i can do with all of them without closing

+1

vaxo chachua Please stop posting very similar questions and then deleating them Your answer to all of your questions you have deleated are the same: In an end tag you use / before the name such as </hr> With no spaces Please read this https://www.sololearn.com/discuss/1316935/?ref=app

+1

So sad I can’t refer to you in the same way. Why don’t you learn proper English first? All of the answers to your questions can be easily found online in seconds anyway.

+1

vaxo chachua As previously mentioned the end tag looks like this </TagName> so for your example it would be </hr> Not any of the others you mentioned However the begining tag looks like this <hr>

+1

vaxo chachua Please read the answers carefully Understand what is being said, Thank you

+1

agent, i know what is closing tag and how i must open and close tags.

+1

agent, it's ok. just try understand begginer thinks.. nguyen, yes that what i asked, thanks. so if i use just <hr> without any additional thinks it woudn't be mistake to any languages and browsers.

0

Jesus Christ... <facepalm>

0

agent, first question was a mistake thats why i deleted.. this tag is horizontal line, so in lesson is that "<hr /> and i am asking is there any difference between <hr /> this <hr> this and <hr/> this. is this question too hard for understand?

0

There is no such thing as <hr/>

0

i asked difference between 3same tag, but no one understands currectly. asked what difference was. browser perception,all of them same and no any difference or something else(not visual side).. when begginer asking something please don't look like that "look new penguin came let's fun" sorry for bad english ❤

0

people, who have mind. please read all this what i asked and what they saying :

-1

no any browser perception or something like that yes? just writing wich one you want?

-1

arminas, i dont asked what visual difference is in there. understand what asked and then say facepalms genius