Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
CSS and XHTML Validation
This discussion has been closed.
Comments
Yes there is. I validate HTML 4.0 strict all the time. And it complains about errors in my markup just as much as when I use XHTML. Well perhaps a bit less because HTML validators don't expect the CDATA stuff around CSS and Javascript. Try it out: http://validator.w3.org/
BTW, you're wrong about HTML Strict validating for well-formedness. It definitely doesn't.
The following is not well-formed but still validates in HTML 4.01 Strict:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Untitled</TITLE> </head> <body> <div CLASS=run> <P CLASS="stop">I didn't use quotes on my first class attribute, and I didn't use lowercase on this opening paragraph tag but HTML strict doesn't care. So much for well-formedness. </div> <p>Hey look! I forgot to close my body tag. No problem, it's HTML. Anything goes! </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <title>I heart HTML</title> <p>Hooray for HTML!
But you're right. If you want to embed SVG images, or microformats in your website, you're probably better off using XHTML.
XHTML is HTML made valid XML. Period. XML compatibility is a key factor, in many aspects.
Good luck and have fun