SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: xhtml Strict Validation Error
Hybrid View
-
Jun 9, 2008, 10:28 #1
xhtml Strict Validation Error
Hi
I've got the following error when I doing the validation at w3c. The code isCode:<div id="subscription"><form method="post" action="checkMail.php"><input class="address" type="text" name="email" size="20" /> <input class="submit_it" type="submit" value="" /></form>
-
Jun 9, 2008, 10:31 #2
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The Strict DTDs (HTML 4.01 Strict, XHTML 1.0 Strict and XHTML 1.1) don't allow inline elements such as input to be immediate children of the form element.
You need to enclose the text field in a block-level element (the fieldset element type is especially made for this; note that it requires a legend as its first child, though).Birnam wood is come to Dunsinane
-
Jun 9, 2008, 10:46 #3
Oh Thank you very much.
Bookmarks