On 2/18/07, Andreas Wahlin <[EMAIL PROTECTED]> wrote:
I may go out on a limb here, but isn't it also so that you should
wrap forms in some sort of block element, preferably a fieldset, to
validate the stricter doctypes?
Form *controls* (<input>s, <textarea>s, <select>s, <label>s, and <button>s)
have to be wrapped in a block level element because <form>s, for whatever
reason, can only contain block level content, and all form controls are
inline content. So you need something like this to properly validate:
<form action="my-awesome-script.php" method="post">
<!-- technically, any block level element will do here, but fieldsets
are the most semantic -->
<fieldset>
<!-- The legend is required for the fieldset to validate -->
<legend>My Awesome Form</legend>
<!-- The label is not required to validate, but is highly
recommended as it improves the accessibility of your forms -->
<label for="fname">Awesome Dude, what be thy name?</label>
<input type="text" id="fname" name="fname">
</fieldset>
</form>
--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/