Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

</br> not working in firefox and chrome

Tags:

html

break line tag is not working in firefox, neither in chrome. When i see the source of my page i get:

<p>Zugang zu Testaccount:</br></br>peter petrelli </br></br>sein Standardpwd.</br></br>peter.heroes.com</p>

However when i do view selected source, i get:

<p>Zugang zu Testaccount: peter petrelli  sein Standardpwd. peter.heroes.com</p>

It seems firefox is filtering break line tags out.

It works in IE7 fine.

like image 959
Sergio del Amo Avatar asked Oct 01 '08 16:10

Sergio del Amo


1 Answers

You're looking for <br /> instead of </br>

Self closing tags such as br have the slash at the end of the tag.

Here are the other self-closing tags in XHTML:

  • What are all the valid self-closing tags in XHTML (as implemented by the major browsers)?
like image 178
Jason Navarrete Avatar answered Oct 21 '22 09:10

Jason Navarrete