|
XHTML Validation
I was validating a couple of pages (xhtml 1.1) and it told me that the <input> tag needed to be in another tag, it was illegal as it was (the code is below).
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="business" value="xxxx@hotmail.com" />
<input type="hidden" name="display" value="1" />
</fieldset>
</form>
Now, the validator told me this:
Line 316, column 53: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag
I suppose my question is this: would a simple <fieldset> tag around all hidden fields fix this? Would this, considering that it is only hidden fields inside the fieldset, put the box around them (even though they don't show up on the page)? Would an <ins> tag be better to use?
Thanks,
MrDoubtFire
|