Which is correct <br> or <br /> ? I suppose <br /> is correct because when you use <br> you dont close the tag.
| SitePoint Sponsor |
Which is correct <br> or <br /> ? I suppose <br /> is correct because when you use <br> you dont close the tag.


HTML: <br>
XHTML: <br/>
If you use 'pretend' XHTML (served as HTML), a space before the slash is recommended to avoid problems with some old browsers.
Birnam wood is come to Dunsinane





Hello
Beaten to it by Tommy![]()
![]()
depends on what DTD you use
A very general answer
HTML 4.01 <br>
XHTML 1.0 <br />
Bookmarks