...

Jump Menu and Validator

mikacruz
10-17-2008, 01:27 PM
Hello fellows,
I have checked a page that contains several jump menus, with validator.w3.org,
The jump menus work fine but they show lots of errors for the validator.
Here is the page in question (http://www.sacred-egypt.com/testkizza.html)

Line 44, Column 24: document type does not allow element "select" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<select name="jump_menu">

Line 50, Column 109: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
…ura.com/blank.gif" alt="jump button"/>

If anyone knows whats wrong, please let me know :)
Thanks a lot

abduraooft
10-17-2008, 01:59 PM
Yes, the inline elements like input ,select etc can't be the immediate child of a form element. You need to wrap them by a block level element.

Adding a <fieldset> and a <legend> is the semantic way. However you may adjust with a single <div>, like

<form......>
<div>
<input .../>
......
</div>
</form>

I'd recommend you to read www.alistapart.com/articles/prettyaccessibleforms

mikacruz
10-17-2008, 02:14 PM
Sweet link abdu, cheers!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum