code:Basically, in XHTML (and the above apply in both strict and transitional) every tag must be closed, even singleton tags. A singleton tag is one like <br />, which doesn't enclose any content. To indicate a singleton tag, use the /> closing as indicated (for compatibility with older browsers, include a space before the /).<br /> not <br>
<li>stuff</li> not <li>stuff
<div>stuff</div> not <div> stuff.
quote:should be changed to
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
quote:That may allow it to validate. However it may not, as the <br> thing is a pretty basic no-no
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
quote:Yay! Only the index page thus far, but now I've got the hang of it. I guess it's worthwhile to really learn what the heck my code is doing, and keep it a little cleaner. Thanks.
This Page Is Valid XHTML 1.0 Strict!
quote:
It's bad in a more general way, especially with CSS being awesome [EDIT: awesome?!?! I meant ascendant, I think].