Question about line breaks

+3 Marilee Arconada · November 27, 2015
Is there a difference between  <br> and <br /> ? I tried them both and it both works.  
What do you prefer to use? :)

Post a Reply

Replies

Oldest  Newest  Rating
+1 Dan P · November 27, 2015
<br> is fine, <br /> is there for compatibility with XHTML

For more information, have a look at http://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br

Hope this helps.

Dan
  • 1

HTML / CSS / Web Design

106,950 followers
About

Discuss, share, ask, learn and teach HTML5 and CSS3.

Links
Moderators