1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I fix these html errors as XHTML 1.0Transitional?

Discussion in 'HTML & Website Design' started by benpolska, Nov 20, 2010.

  1. #1
    page 1:
    Line 71, Column 19: required attribute "action" not specified
    <form name="quiz">

    Line 97, Column 49: there is no attribute "onClick"
    <input type="button" value="Get score" onClick="getScore(this.form)" />

    Line 100, Column 88: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified
    …input class="bgclr" type="text" size="5" name="percentage" disabled /></strong> Line

    105, Column 48: there is no attribute "wrap"
    …ea class="bgclr" name="solutions" wrap="virtual" rows="4" cols="30" disabled />

    Line 105, Column 87: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified
    …ea class="bgclr" name="solutions" wrap="virtual" rows="4" cols="30" disabled />

    Line 127, Column 7: end tag for "div" omitted, but OMITTAG NO was specified
    </body>

    info: Line 43, Column 1: start tag was here
    <div id="outer">

    page 2:
    Line 79, Column 7: end tag for "div" omitted, but OMITTAG NO was specified
    </body>

    info: Line 16, Column 1: start tag was here
    <div id="outer">
    benpolska, Nov 20, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,328
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    These are self explained,

    Last edited: Nov 20, 2010
    radiant_luv, Nov 20, 2010 IP
  3. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This page explains all the errors generated by the validator:
    http://validator.w3.org/docs/errors.html

    Don't use wrap, it's not a standard attribute. Only IE and Opera recognize it.

    Attribute minimization is not allowed, so change "disabled" to disabled="disabled"

    On both page 1 and 2, you are missing a closing div somewhere. Try putting </div> just before </body> on both pages.
    Cash Nebula, Nov 20, 2010 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,429
    Likes Received:
    94
    Best Answers:
    7
    Trophy Points:
    0
    #4
    Learn (X)HTML.
    drhowarddrfine, Nov 21, 2010 IP
  5. ezcodez

    ezcodez Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Why would you use Transitional.....? Strict is the way to go
    ezcodez, Nov 22, 2010 IP
  6. CSM

    CSM Active Member

    Messages:
    1,046
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Sometimes Strict is not possible.

    @drhowarddrfine

    Haha, that's what I have thought, too :D
    CSM, Nov 22, 2010 IP