what's the difference between <hr and <p ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

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

13th Sep 2018, 5:29 PM
ArtichautFrit
ArtichautFrit - avatar
2 Respostas
+ 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