+ 1

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

13th Sep 2018, 5:29 PM
ArtichautFrit
ArtichautFrit - avatar
2 Answers
+ 1
<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
13th Sep 2018, 5:43 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
+ 1
By the way, the "attributes" tag for the post is a bit misleading. Horizontal rule and paragraph are elements.
13th Sep 2018, 6:03 PM
Janning⭐
Janning⭐ - avatar