Solved: validation errors

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

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. 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. 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. 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. 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. 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. Line 12, Column 30: character data is not allowed here <LI class=msg_warn>
    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>
    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>
    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>
 

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>
 

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
 

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...
 

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
 

rotarysteve

Banned
Joined
Dec 26, 2010
Messages
496
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...
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!!!!!!!!!!!!!!!!
 

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
 

DrP

Joined
Jul 23, 2005
Messages
739
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!!!!!!!!!!!!!!!!
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?

Chrissy,

we can move into a different forum to help you..... I can be found on the <mod removed other site>
Same username
Oh, I see!
 

pyritechips

Jim
Gone but Never Forgotten
Joined
Jun 2, 2002
Messages
26,907
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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Members online

Top