SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    823
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    <option selected> does not validate

    hi,

    why does this

    Code:
    <select>
    <option selected>
    </select>
    not validate??? I mean the <option selected> part..

    I put "selected" in quotes, it also does not validate (XHTML 1.0)

    thank you...

  2. #2
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    9,087
    Mentioned
    153 Post(s)
    Tagged
    2 Thread(s)
    <option selected>...</option> is HTML

    For XHTML you need to use <option selected="selected'>...</option>

  3. #3
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    823
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ok great.. that validates....

    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
  •