Hi,
No the validator is saying its not valid because of the errors it lists below.
I've corrected the errors in the html and this code is valid:
Code:
<div id="wrapper">
<div id="main">
<p id="toplinks"> HOME <img src="images/spacer3.gif" width="1" height="7" alt="" /> SITEMAP <img src="images/spacer3.gif" width="1" height="7" alt="" /> CONTACT </p>
<div id="header"> <a href=""><img src="images/home1.png" width="100" height="30" class="logo2 domroll images/home2.png" alt="" /></a> <a href=""><img src="images/about1.png" width="100" height="30" class="logo domroll images/about2.png" alt="" /></a> <a href=""><img src="images/contact1.png" width="100" height="30" class="logo domroll images/contact2.png" alt="" /></a> <a href=""><img src="images/search1.png" width="100" height="30" class="logo domroll images/search2.png" alt="" /></a>
<form action="submit">
<div class="strapline">
<input class="username" name="" type="text" value="username" />
<input class="password" name="" type="text" value="password" />
<input class="submit" type="submit" value="log in" />
</div>
</form>
</div>
</div>
</div>
<script src="chrisdomroll.js" type="text/javascript">
/****************************************************
* DOM Image rollover v3.0: By Chris Poole http://chrispoole.com
* Script featured on http://www.dynamicdrive.com
* Keep this notice intact to use it :-)
****************************************************/
</script>
</body>
A form should have a block level element as its direct child so use a div instead of the span. It will make no difference to the display because you are floating it anyway so they will both behave the same.
You also missed the closing tags of the inputs. Apart from that (and the server code) it was more or less valid anyway.
You should look into using lists for that menu though as it is much neater and more accessible although it is slightly harder to code. I'll leave that for you to look into
Bookmarks