Possible to Validate FORM in XHTML?

Soldato
Joined
30 Nov 2005
Posts
3,084
Location
London
Is it possible to validate a FORM in XHTML Strict?

It seems to have problems with FORM 'name' and FORM 'method' etc.

Any ideas?

Cheers.
 
How do you mean validate?

It should look something like this:
Code:
<form method="post" action="somepage.php">
    <fieldset>
        ...
    </fieldset>
</form>

Remember that all attributes and element names must be lower case.

Also, your sig is 474 bytes over the weight limit. ;)
 
Use the id attribute in place of the name attribute. name is deprecated in XHTML, in favour of the id attribute.

The action attribute is also required, so you must include it in your form element.

http://www.w3.org/TR/xhtml1/#h-4.10

/OT - nice signature Inquisitor, excellent taste in music ;).
 
Last edited:
Back
Top Bottom