SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Addict skyhigh007's Avatar
    Join Date
    Jun 2006
    Posts
    363
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    xhtml Strict Validation Error

    Hi

    I've got the following error when I doing the validation at w3c. The code is
    Code:
    <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>
    The Error is in here

  2. #2
    SitePoint Author silver trophybronze trophy

    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

  3. #3
    SitePoint Addict skyhigh007's Avatar
    Join Date
    Jun 2006
    Posts
    363
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh Thank you very much.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •