View Single Post
  #3 (permalink)  
Old 06-20-2007, 12:11 PM
Nutter Nutter is offline
Novice
Join Date: Jun 2007
Posts: 22
iTrader: (0)
Nutter is on a distinguished road
Hello nailed it. If you see <br /> it's XHTML and <br> is HTML.

The reason for the difference is that XHTML requires all tags to be closed. If you look at the <form> and </form> tags in the example you posted the </form> closes the <form> tag. But <br> and <input> don't have closing versions - there isn't a </br> or </input>, they just wouldn't make sense. So they have to close themselves by becoming <br /> and <input />.

Personally, I use HTML for a majority of my sites and only use XHTML when the CMS requires it.

__________________
- Ryan
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!