1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: validation errors

Discussion in 'Web Design & Development' started by chrissy1955, Jan 8, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. chrissy1955

    chrissy1955 Thread Starter

    Joined:
    Jan 29, 2010
    Messages:
    51
    When i do a validate, I get 9 errors and 5 warnings - none of which makes sense to me - any help is much appreciated - my html is towards the bottom, these are some of the errors:(

    1. [​IMG] Line 12, Column 2: unclosed start-tag requires SHORTTAG YES
      <Table width="100% border="2">&#9993;
      The construct <foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers.
    2. [​IMG] Line 12, Column 16: literal is missing closing delimiter <Table width="100% border="2">&#9993;
      Did you forget to close a (double) quote mark?
    <LI class=msg_err>
    1. [​IMG] Line 12, Column 30: character data is not allowed here
    2. <Table width="100% border="2">
    3. &#9993;
    4. You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
    1. putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
    1. forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
    2. using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
    3. [​IMG] Line 12, Column 2: unclosed start-tag requires SHORTTAG YES <Table width="100% border="2">&#9993;
      The construct <foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers.
    4. [​IMG] Line 12, Column 16: literal is missing closing delimiter <Table width="100% border="2">&#9993;
      Did you forget to close a (double) quote mark?
    5. [​IMG] Line 12, Column 30: character data is not allowed here <LI class=msg_warn>[​IMG] Line 12, Column 2: unclosed start-tag requires SHORTTAG YES <Table width="100% border="2">&#9993;
      The construct <foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers.

      <LI class=msg_err>[​IMG] Line 12, Column 16: literal is missing closing delimiter <Table width="100% border="2">&#9993;
      Did you forget to close a (double) quote mark?

      <LI class=msg_err>[​IMG] Line 12, Column 30: character data is not allowed here <Table width="100% border="2">&#9993;

      You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
      • putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
      • forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
      • using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
      <Table width="100% border="2">&#9993;

      You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
      • putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
      • forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
      • using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-type" content="text/html;charset=utf-8" >
    <title>
    Joe's Web
    </title>
    </head>
    <body style="background-color:paleGreen;"
    <Table width="100% border="2">
    <h1 style="text-align:center"><i><p style="font-family:Verdana, Arial, Helvetica, sans serif;color:DarkGreen">All Produce at Joe's</P></i></h1>
    </table>
    <table width="100%" border="2">
    <tr>
    <td valign="bottom" width="15%">

    <a href="joeshome.html"><img src="iceberg.jpg" border="5" title="Home" height="100" width="150"></a>
    <br>
    <a href="joesproduce.html"><img src="cos.jpg" border="5" title="Produce" height="100" width="150"></a>
    <br>
    <a href="joeshistory.html"><img src="fancy.jpg" border="5" title="History" height="100" width="150"></a>

    <td valign="top" width="85%">

    </td>
    </tr>
    </table>
    <p style="font-family:Verdana, Arial, Helvetica, sans serif;color:DarkGreen">Click on the image map circle to go to the required page:</p>
    <img src="traffic lights.jpg" width="165" height="126" alt="trafficlights" usemap="#trafficlightsmap"/>
    <map name="trafficlightsmap">
    <area shape="circle" coords="40,40,15" alt="Home" href="joeshome.html"/>
    <area shape="circle" coords="80,40,15" alt="produce" href="joesproduce.html"/>
    <area shape="circle" coords="120,40,15" alt="history" href="joeshistory.html"/>
    </map>
    </body>
    </html>
     
  2. rotarysteve

    rotarysteve Banned

    Joined:
    Dec 26, 2010
    Messages:
    496
    Hi,

    I have fixed your page, there is much more to help it out, but lets make sure some changes i did on line 12 doesn't change your page's look. Just make sure to keep your original code stashed away for a backup, and if we have to go back, then we can work on it a error at a time....... Also, with what changes do work I'd be glad to explain.

    Steve


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-type" content="text/html;charset=utf-8" >
    <title>
    Joe's Web
    </title>
    </head>
    <body style="background-color:paleGreen;">
    <table width="100%" border="2">
    <tr><td style="font-family:Verdana, Arial, Helvetica, sans serif;colorarkGreen"><h1 style="text-align:center"><i>All Produce at Joe's</i></h1></td></tr>
    </table>
    <table width="100%" border="2">
    <tr>
    <td valign="bottom" width="15%">
    <a href="joeshome.html"><img src="iceberg.jpg" border="5" title="Home" height="100" width="150" alt=""></a>
    <br>
    <a href="joesproduce.html"><img src="cos.jpg" border="5" title="Produce" height="100" width="150" alt=""></a>
    <br>
    <a href="joeshistory.html"><img src="fancy.jpg" border="5" title="History" height="100" width="150" alt=""></a>
    <td valign="top" width="85%">
    </td>
    </tr>
    </table>
    <p style="font-family:Verdana, Arial, Helvetica, sans serif;colorarkGreen">Click on the image map circle to go to the required page:</p>
    <img src="traffic lights.jpg" width="165" height="126" alt="trafficlights" usemap="#trafficlightsmap">
    <map name="trafficlightsmap">
    <area shape="circle" coords="40,40,15" alt="Home" href="joeshome.html">
    <area shape="circle" coords="80,40,15" alt="produce" href="joesproduce.html">
    <area shape="circle" coords="120,40,15" alt="history" href="joeshistory.html">
    </map>
    </body>
    </html>
     
  3. chrissy1955

    chrissy1955 Thread Starter

    Joined:
    Jan 29, 2010
    Messages:
    51
    Thanks for that Steve

    I have done as you suggested and run the validation report again and go no errors. Now I am just going to go thru you copy comparing it to my copy so I get a full understanding of where I went wrong. If I don't understand then I will be in touch as you have offered. Many Many thanks
     
  4. DrP

    DrP

    Joined:
    Jul 23, 2005
    Messages:
    739
    Sorry to throw a spanner in the works, but I can't understand why you'd be so fussed about validation then go and build the site using tables...
     
  5. chrissy1955

    chrissy1955 Thread Starter

    Joined:
    Jan 29, 2010
    Messages:
    51
    i am a novice doing an assignment which is why I am doing it long hand so to speak.. thanks for the input
     
  6. rotarysteve

    rotarysteve Banned

    Joined:
    Dec 26, 2010
    Messages:
    496
    Really,

    What is your problem that you would say that..... the TECHGUY.ORG site is a place for people to ask for help only to be insulted by this quote...... to many fussy moderators and senior members and i will file a complaint


    Tech Guys this is so very sad!!!!!!!!!!!!!!!!
     
  7. rotarysteve

    rotarysteve Banned

    Joined:
    Dec 26, 2010
    Messages:
    496
    Chrissy,

    we can move into a different forum to help you..... I can be found on the ************

    Same username
     
  8. DrP

    DrP

    Joined:
    Jul 23, 2005
    Messages:
    739
    Eh? What's insulting about that? Building sites using tables is poor, outdated practice and validation isn't as important as most people would have you believe. What better way to help someone new to building websites than to point these things out so they get the best start possible?

    Oh, I see!
     
  9. pyritechips

    pyritechips Gone but Never Forgotten

    Joined:
    Jun 2, 2002
    Messages:
    26,907
    First Name:
    Jim
    Please keep attitude and "opinions" out of tech threads. The goal here is to help the person, not get into a debate on what the member should do, or why.

    Answer chrissy1955's question constructively or don't post. Also don't prompt the member to go elsewhere for help. I'm deleting the suggestion in rotarysteve's post.
     
  10. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/973369

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice