what's the difference between <hr and <p ? | Sololearn: Learn to code for FREE!


what's the difference between <hr and <p ?

9/13/2018 5:29:59 PM


2 Answers

New Answer


<hr /> Creates a visual horizontal line/rule to begin a new line. <p> </p> Creates a new line with or without content inside the begin and closing tag. They are both newline tags. Therefore both will create a new line when the tag is used. https://www.w3schools.com/html/html_paragraphs.asp https://www.w3schools.com/tags/tag_hr.asp


By the way, the "attributes" tag for the post is a bit misleading. Horizontal rule and paragraph are elements.