Validation

Discussion in 'HTML & Website Design' started by trixs, Jul 29, 2007.

  1. #1
    I can not seem to get one portion of my site to validate.. Anyone have any idea whats wrong with the following?

    the DTD ..
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">

    <form id="login" action="/manage.php?code=login" method="POST">
    <input type="hidden" name="redirect" value="/index/">
    Username: <input class="theInput" type="text" name="username">
    Password: <input class="theInput" type="password" name="password">
    <input type="submit" name="Submit" value="Login">
    </form>


    Ive tried changing all sorts of things with this but never seems to work :(
     
    trixs, Jul 29, 2007 IP
  2. trixs

    trixs Peon

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No ideas egh? Ive swapped doctype to xhtml strict and still get same errors on that one portion:

    <form id="login" action="/manage.php?code=login" method="post">
    <input type="hidden" name="redirect" value="/index/"/>
    Username:<input class="theInput" type="text" name="username"/>
    Password:<input class="theInput" type="password" name="password"/>
    <input type="submit" name="Submit" value="Login"/>
    </form>


    Oh well.. Guess it really doesnt need to validate lol
     
    trixs, Jul 29, 2007 IP
  3. trixs

    trixs Peon

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    trixs, Jul 29, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Or a fieldset.

    However, if you use a fieldset, you have to use a legend as well. Those two elements are the hardest to style consistently cross browser, so an extra DIV and SPAN will be required to act as placeholders (the former for IE, and the latter because it trips up Gecko based browsers like Firefox, K-Meleon and Netscape 6+). You can learn more at www.tyssendesign.com.au/articles/legends-of-style/
     
    Dan Schulz, Jul 29, 2007 IP