SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict jodmcc's Avatar
    Join Date
    Dec 2003
    Location
    Houston, Texas
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Can't figure out error to validate

    I've gotten all but this 1 error out of my page and can't figure out how to fix it. This is the area that I get the error about having an extra P close tag.

    <p><ol><li>Fill in the number of calendars you would like to order. Multiply this number by $5.50. Add appropriate sales tax for your area (if applicable). All information must be supplied or your order will not be filled.</li><li>Calculate your subtotal and add $0.00 for shipping and handling.</li><li>Calculate your total. Send this form along with a check or money order (payable to SOPUS Products) to: 2005 ROTELLA SuperRigs Offer/5847 San Felipe/Houston, TX 77057.</li></ol></p>


    Any help would be appreciated.

    Thanks,

    John


    HTML:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
    <html>
    <head>
    <title>Additional Calendar Order Form</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    <link href="superrigs.css" rel="stylesheet" type="text/css">
    </head>

    <body class="extracalendarbody">
    <div class="containerdiv">
    <div id="header"><img src="images/header.gif" alt="superrigs header" width="800" height="105"></div>
    <div id="content">
    <div id="formcontent"><form action="" method="post" name="Additional Calendar Order Form">
    <h1>Additional Calendar Order Form<br>ROTELLA SuperRigs&trade; 2005</h1><p class="extramargin20">Act now and order additional limited edition 2005 ROTELLA SuperRigs&trade; calendars. The 2005 calendar gives you 12 full-color photographs of some of the best-looking working trucks around. These are sure to go fast, so order yours today.</p><p><ol><li>Fill in the number of calendars you would like to order. Multiply this number by $5.50. Add appropriate sales tax for your area (if applicable). All information must be supplied or your order will not be filled.</li><li>Calculate your subtotal and add $0.00 for shipping and handling.</li><li>Calculate your total. Send this form along with a check or money order (payable to SOPUS Products) to: 2005 ROTELLA SuperRigs Offer/5847 San Felipe/Houston, TX 77057.</li></ol></p><p><span class="xtracalbold">Don't delay!</span> Offer good while supplies last. If using Visa or MasterCard, be sure to fill in spaces below. Credit card orders only may be faxed to (713) 655-3555, ATTN: ROTELLA SuperRigs&trade; Calendar Offer.</p><p><span class="xtracalbold">Questions?</span> Call (713) 655-3677.</p><h2>ORDER FORM</h2><p>Name:&nbsp;<input name="name" type="text" size="75"></p><p>Address:&nbsp;<input name="address" type="text" size="75"></p><p>City:&nbsp;<input name="city" type="text" size="20">&nbsp;&nbsp;State:&nbsp;<input name="state" type="text" size="4">&nbsp;&nbsp;Zip Code:&nbsp;<input name="zipcode" type="text" size="5"></p><p>Phone:&nbsp;<input name="phone" type="text" size="10"></p><p>&nbsp;</p><table width="700">
    <tr>
    <td class="name">Name As It Appears on Card</td>
    <td class="billto">Bill to Address (if different than above)</td>
    </tr>
    <tr>
    <td class="tdborder">&nbsp;</td>
    <td class="tdborder">&nbsp;</td>
    </tr>
    </table>
    <p>&nbsp;</p>
    <table width="700">
    <tr>
    <td class="typecardexpire">Type of Card</td>
    <td class="cardnumber">Card Number</td>
    <td class="typecardexpire">Expiration Date</td>
    </tr>
    <tr>
    <td class="tdborder">&nbsp;</td>
    <td class="tdborder">&nbsp;</td>
    <td class="tdborder">&nbsp;</td>
    </tr>
    </table>
    <p>&nbsp;</p>
    <table width="700" class="extramargin20">
    <tr>
    <td class="signature">Signature</td>
    <td class="spacer50">&nbsp;</td>
    <td class="date">Date</td>
    </tr>
    </table>
    <p>&nbsp;</p>
    <table width="700" cellpadding="3" cellspacing="0">
    <tr>
    <th class="topmidborder1">Item</th>
    <th class="topmidborder2">Quantity</th>
    <th class="tdborder1">Total</th>
    </tr>
    <tr>
    <td class="lftmidborder">Calendar $5.50</td>
    <td class="lftmidborder">&nbsp;</td>
    <td class="rtborder">&nbsp;</td>
    </tr>
    <tr>
    <td class="lftmidborder">Add Sales Tax (where applicable)</td>
    <td class="lftmidborder">&nbsp;</td>
    <td class="rtborder">&nbsp;</td>
    </tr>
    <tr>
    <td class="lftmidborder">Subtotal</td>
    <td class="lftmidborder">&nbsp;</td>
    <td class="rtborder">&nbsp;</td>
    </tr>
    <tr>
    <td class="lftmidborder">S&H</td>
    <td class="lftmidborder">&nbsp;</td>
    <td class="rtborder">&nbsp;</td>
    </tr>
    <tr>
    <th class="lftmidborder">TOTAL</th>
    <td class="lftmidborder">&nbsp;</td>
    <td class="rtborder">&nbsp;</td>
    </tr>
    </table>
    <div id="personalize"><p>&nbsp;</p><p>If you would like your calendars personalized (for orders of 50 or more in multiples of 50), please fill in your personalization information below.</p><p>Company Name:&nbsp;
    <input name="pers_company_name" type="text" size="50"></p><p>Address:&nbsp;<input name="pers_address" type="text" size="50"></p><p>City:&nbsp;<input name="pers_city" type="text" size="20">&nbsp;&nbsp;State:&nbsp;<input name="pers_state" type="text" size="4">&nbsp;&nbsp;Zip Code:&nbsp;<input name="pers_zip" type="text" size="5"></p><p>Phone:&nbsp;<input name="pers_phone" type="text" size="10">&nbsp;&nbsp;Website:&nbsp;<input name="pers_website" type="text" size="40"></p><p>&nbsp;</p></div>
    <div id="personalizelogo"><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;<br></p><img src="images/PctnBW.gif" alt="" width="58" height="54"></div>
    <div class="clearboth"></div>
    </form></div>
    <div id="homefooter"></div>
    </div>
    </div>
    </body>
    </html>

  2. #2
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    I believe the problem is that you cannot have a list inside a paragraph.

    Code:
    <ol>
     <li>Fill in the number of calendars you would like to order. Multiply this number by $5.50. Add appropriate sales tax for your area (if applicable). All information must be supplied or your order will not be filled.</li>
       <li>Calculate your subtotal and add $0.00 for shipping and handling.</li>
     <li>Calculate your total. Send this form along with a check or money order (payable to SOPUS Products) to: 2005 ROTELLA SuperRigs Offer/5847 San Felipe/Houston, TX 77057.</li>
       </ol>
    Hope this helps.

    Later
    Johnny

    PS:
    W3C found several other errors in the code you posted, in addition to the one you mentioned.


    1. Line 67, column 34: non SGML character number 151



      <td class="lftmidborder">Calendar � $5.50</td>



    2. Line 82, column 27: cannot generate system identifier for general entity "H"



      <td class="lftmidborder">S&H</td>



      An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (. The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".



      Entity references start with an ampersand (&) and end with a semicolon (. If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.



      Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.





    3. Line 82, column 27: general entity "H" not defined and no default entity



      <td class="lftmidborder">S&H</td>



      This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.





    4. Line 82, column 28: reference to entity "H" for which no system identifier could be generated



      <td class="lftmidborder">S&H</td>



      This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.





    5. Line 82, column 26: entity was defined here



      <td class="lftmidborder">S&H</td>

  3. #3
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    Now it validates:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
     <html>
     <head>
     <title>Additional Calendar Order Form</title>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     
     <link href="superrigs.css" rel="stylesheet" type="text/css">
     </head>
     
     <body class="extracalendarbody">
     <div class="containerdiv">
     <div id="header"><img src="images/header.gif" alt="superrigs header" width="800" height="105"></div>
     <div id="content">
     <div id="formcontent"><form action="" method="post" name="Additional Calendar Order Form">
     <h1>Additional Calendar Order Form<br>ROTELLA SuperRigs&trade; 2005</h1><p class="extramargin20">Act now and order additional limited edition 2005 ROTELLA SuperRigs&trade; calendars. The 2005 calendar gives you 12 full-color photographs of some of the best-looking working trucks around. These are sure to go fast, so order yours today.</p>
     
     <ol>
     <li>Fill in the number of calendars you would like to order. Multiply this number by &#36;5.50. Add appropriate sales tax for your area (if applicable). All information must be supplied or your order will not be filled.</li>
     <li>Calculate your subtotal and add $0.00 for shipping and handling.</li>
     <li>Calculate your total. Send this form along with a check or money order (payable to SOPUS Products) to: 2005 ROTELLA SuperRigs Offer/5847 San Felipe/Houston, TX 77057.</li>
     </ol>
     
     <p><span class="xtracalbold">Don't delay!</span> Offer good while supplies last. If using Visa or MasterCard, be sure to fill in spaces below. Credit card orders only may be faxed to (713) 655-3555, ATTN: ROTELLA SuperRigs&trade; Calendar Offer.</p>
     <p><span class="xtracalbold">Questions?</span> Call (713) 655-3677.</p>
     <h2>ORDER FORM</h2>
     <p>Name:&nbsp;<input name="name" type="text" size="75"></p><p>Address:&nbsp;<input name="address" type="text" size="75"></p><p>City:&nbsp;<input name="city" type="text" size="20">&nbsp;&nbsp;State:&nbsp;<input name="state" type="text" size="4">&nbsp;&nbsp;Zip Code:&nbsp;<input name="zipcode" type="text" size="5"></p>
     <p>Phone:&nbsp;<input name="phone" type="text" size="10"></p>
     <p>&nbsp;</p><table width="700">
     <tr>
     <td class="name">Name As It Appears on Card</td>
     <td class="billto">Bill to Address (if different than above)</td>
     </tr>
     <tr>
     <td class="tdborder">&nbsp;</td>
     <td class="tdborder">&nbsp;</td>
     </tr>
     </table>
     <p>&nbsp;</p>
     <table width="700">
     <tr>
     <td class="typecardexpire">Type of Card</td>
     <td class="cardnumber">Card Number</td>
     <td class="typecardexpire">Expiration Date</td>
     </tr>
     <tr>
     <td class="tdborder">&nbsp;</td>
     <td class="tdborder">&nbsp;</td>
     <td class="tdborder">&nbsp;</td>
     </tr>
     </table>
     <p>&nbsp;</p>
     <table width="700" class="extramargin20">
     <tr>
     <td class="signature">Signature</td>
     <td class="spacer50">&nbsp;</td>
     <td class="date">Date</td>
     </tr>
     </table>
     <p>&nbsp;</p>
     <table width="700" cellpadding="3" cellspacing="0">
     <tr>
     <th class="topmidborder1">Item</th>
     <th class="topmidborder2">Quantity</th>
     <th class="tdborder1">Total</th>
     </tr>
     <tr>
     <td class="lftmidborder">Calendar &#45; &#36;5.50</td>
     <td class="lftmidborder">&nbsp;</td>
     <td class="rtborder">&nbsp;</td>
     </tr>
     <tr>
     <td class="lftmidborder">Add Sales Tax (where applicable)</td>
     <td class="lftmidborder">&nbsp;</td>
     <td class="rtborder">&nbsp;</td>
     </tr>
     <tr>
     <td class="lftmidborder">Subtotal</td>
     <td class="lftmidborder">&nbsp;</td>
     <td class="rtborder">&nbsp;</td>
     </tr>
     <tr>
     <td class="lftmidborder">S&amp;H</td>
     <td class="lftmidborder">&nbsp;</td>
     <td class="rtborder">&nbsp;</td>
     </tr>
     <tr>
     <th class="lftmidborder">TOTAL</th>
     <td class="lftmidborder">&nbsp;</td>
     <td class="rtborder">&nbsp;</td>
     </tr>
     </table>
     <div id="personalize"><p>&nbsp;</p><p>If you would like your calendars personalized (for orders of 50 or more in multiples of 50), please fill in your personalization information below.</p><p>Company Name:&nbsp;
     <input name="pers_company_name" type="text" size="50"></p><p>Address:&nbsp;<input name="pers_address" type="text" size="50"></p><p>City:&nbsp;<input name="pers_city" type="text" size="20">&nbsp;&nbsp;State:&nbsp;<input name="pers_state" type="text" size="4">&nbsp;&nbsp;Zip Code:&nbsp;<input name="pers_zip" type="text" size="5"></p><p>Phone:&nbsp;<input name="pers_phone" type="text" size="10">&nbsp;&nbsp;Website:&nbsp;<input name="pers_website" type="text" size="40"></p><p>&nbsp;</p></div>
     <div id="personalizelogo"><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;<br></p><img src="images/PctnBW.gif" alt="" width="58" height="54"></div>
     <div class="clearboth"></div>
     </form></div>
     <div id="homefooter"></div>
     </div>
     </div>
     </body>
     </html>
    Later
    Johnny

  4. #4
    SitePoint Addict jodmcc's Avatar
    Join Date
    Dec 2003
    Location
    Houston, Texas
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Johnny,

    I was going nuts trying to figure it out. I guess I need to brush up on my HTML.

  5. #5
    <? james('rules'); ?>
    Join Date
    Jun 2004
    Location
    Wales, UK
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Davesite may help you there .
    If knowledge is power - Why isn't our army librarians?!
    Statistics show that 63% of all statistics are fake.
    When i was little i broke my neck, and i havent looked back since .
    I completed the internet in 1 week. The end boss was pretty easy though .

  6. #6
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello

    Here is another link that can help you out on html, XHTML, CSS and more...

    Later
    Johnny


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
  •