Then it's time you learned
http://www.alistapart.com/articles/doctype/
Quote:
|
<?xml version="1.0" encoding="UTF-8"?>
|
Having the xml declaration in there will throw IE versions (except 8) into Quirks Mode - and you definitely do NOT want that, the results will be ugly.
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
The XHTML 1.1 DTD is NOT fully supported by any browser at this time, and it will cause problems, so use XHTML 1.0 Strict instead, which IS fully supported.
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
Many will argue that unless you're going to actually render your code AS XML, then using the XHTML doctype rendered as text is 'wrong'. Since XML didn't evolve as it was thought it would, I think it's rather a moot point.
Quote:
<select id="gowhere" onchange="go()">
|
The validator doesn't like javascript inside a tag, it will ALWAYS choke on that. The validator will also trip errors or warnings on things downstream in your code based on an error it finds above it. So the </form> erorr may be due to what it doesn't like on that <select> tag.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
Last edited by LadynRed; 07-03-2009 at 10:32 AM..
|