Forum Moderators: not2easy
<form name=login>
<div style="text-align: right; width:210px; padding:5px;">
<div style="padding:3px; font: bold 13px arial;"> Log In:</div>
<div style="padding:3px; font: normal 13px arial;">Pass: <input type="password" name="username" size="15" maxlength="30" style="width: 100px"></div>
<div style="padding:3px;"> <input type=button value="Login" onClick="Login()" style="width: 65px;"></div>
</div>
</form>
There's javascript above this - but i think it's the form coding that's falling foul of validation.
I get a whole list of errors on validation - but i think most are knock-on effects of previous errors so the first one is: (pointing to form name=login)
an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
which I'm afraid means nothing to me.
If anyone can point out the error of my ways i'd much appreciate it - thanks!
....in an attempt to impose some discipline on myself i decided to code in XHTML 0.1 Transitional.
Why XHTML? Do you plan on doing any extending of the HTML set, plan on using any tools that require an XHTML doctype, is there any real reason you associate "discipline" with "XHTML?" Does your server output XHTML headers, or is the content-type still text/html?
I'm not picking on you - HONEST! - and I'm not knocking XHTML either, but you can be just as disciplined with an HTML 4.01 strict doctype, in which you can lose all the funny />'s. If you're coding HTML, you may as well describe your document as HTML.
But yes, unquoted attributes will still kick errors in 4.01, you just won't need all those closing tags on standalone elements.