| 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. |