PDA

View Full Version : Validation errors, need a fresh set of eyes...


blanchard
02-14-2010, 05:39 PM
Hello all OK,
I have the following 6 errors after a validation:

# Error Line 54, Column > 80: XML Parsing Error: attributes construct error

…M-Gaynor-QP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertiseme…

# Error Line 54, Column > 80: XML Parsing Error: Couldn't find end of Start Tag a line 54

…M-Gaynor-QP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertiseme…

# Error Line 54, Column > 80: XML Parsing Error: Opening and ending tag mismatch: p line 52 and a

…M-Gaynor-QP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertiseme…

# Error Line 54, Column > 80: XML Parsing Error: Opening and ending tag mismatch: div line 51 and p

…M-Gaynor-QP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertiseme…

# Error Line 83, Column 6: XML Parsing Error: Opening and ending tag mismatch: body line 45 and div

</div>

# Error Line 84, Column 7: XML Parsing Error: Opening and ending tag mismatch: html line 2 and body

</body>

------------------

Now for the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<link rel="stylesheet" href="lightbox/css/lightbox.css" type="text/css" media="screen" />
<title>Thomas Blanchard digital design portfolio, please take a look.</title>
<meta name="Description" content="Digital design for print and web, please take a look at my portfolio." />
<meta name="keywords" content="Advertisements, (Magazine and Newspaper), Business Cards, Flyers, Leaflets, Websites" />
<meta name="ROBOTS" content="index,follow" />
<meta name="REVISIT-AFTER" content="30" />
<meta name="DISTRIBUTION" content="Global" />
<script type="text/javascript" src="lightbox/js/prototype.js"></script>
<script type="text/javascript" src="lightbox/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox/js/lightbox.js"></script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link href="cssportfolio.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #666666;
}
.websitestext {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 14px;
color: #666666;
text-align: left;
}
.emailweb {
background-color: #666666;
font-size: 14px;
}
-->
</style>
</head>

<body>
<div id="container">
<div class="digitaldesign" id="header"> Digital design
services for print and web.<br />
<br />
</div>
<div id="portfolio">
<p>Advertisements (Magazine and Newspaper), Business Cards, Flyers/Leaflets<br />
<a href="lightbox/images/portfolioA1-Building-Services-EP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - A1 Building Services"><img src="images/A1-Building-Services-EP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioBlack-Bull-HP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Black Bull"><img src="images/Black-Bull-HP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioD&amp;C-House-Clearances-HP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - D and C House Clearances"><img src="images/D&amp;C-House-Clearances-HP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioDarrells-Decorating-EP-Strip.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Darrell's Decorating Services"><img src="images/Darrells-Decorating-EP-Strip.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioFloorite-QP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Floorite Carpets"><img src="images/Floorite-QP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioG-Sharp-&amp;-Son-Butchers-HP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Sharp and Son Butchers"><img src="images/G-Sharp-&amp;-Son-Butchers-HP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioHamadan-QP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Hamadan Authentic Indian Restaurant and Takeaway"><img src="images/Hamadan-QP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioMidas-Building-Services.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - MiDAS Building Services"><img src="images/Midas-Building-Services.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioPiano-Teacher-EP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Linda Bell, Piano Teacher"><img src="images/Piano-Teacher-EP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a><br />
<a href="lightbox/images/portfolioSM-Gaynor-QP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Simon Gaynor Bricklayer/Builder"><img src="images/SM-Gaynor-QP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioSpread-Eagle-HP-Vert.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - The Spread Eagle"><img src="images/Spread-Eagle-HP-Vert.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/BB.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Butterfly Bouquets Florist"><img src="images/Butterfly.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/CP.gif" rel="lightbox[www.thomasblanchard.co.uk]"title="Advertisement - The Carrier Pigeon Magazine"><img src="images/carrier.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/CWD.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - County Waterwell Drilling Services"> <img src="images/CountyW.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/QFS.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Quality Shop Fittings"><img src="images/QualityS.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioButlers-Arms-HP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - The Butlers Arms"><img src="images/Butlers-Arms-HP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioOssy-Wrought-Iron-HP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Ossy Wrought Iron"><img src="images/Ossy-Wrought-Iron-HP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a> <a href="lightbox/images/portfolioRufus-Carr-TP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Advertisement - Rufus Carr Ford"><img src="images/Rufus-Carr-TP.gif" alt="Digital Design for Print &amp; Web" width="70" height="70" /></a></p>
<p>Websites<br />
<a href="http://www.TheCarrierPigeon.co.uk" target="_blank"><img src="images/carrierpigeonwebsite.gif" alt="Website Design" width="300" height="50" align="left" /></a><span class="emailweb"><a href="http://www.TheCarrierPigeon.co.uk" target="_blank">&nbsp;www.TheCarrierPigeon.co.uk&nbsp;</a><br />
</span><span class="websitestext">&nbsp;carrierpigeon@virginmedia.com&nbsp;</span> <span class="websitestext">or &nbsp;info@thecarrierpigeon.co.uk&nbsp;<br />
&nbsp;Telephone: (01254) 245 279 or Mobile: 07824 553 790</span><br />
<br />
<a href="http://CountyWaterwells.co.uk" target="_blank"><img src="images/countywaterwellswebsite.gif" alt="Website Design" width="300" height="50" align="left" /></a><span class="emailweb"><a href="http://www.CountyWaterwells.co.uk" target="_blank">&nbsp;www.CountyWaterwells.co.uk&nbsp;</a><br />
</span><span class="websitestext">&nbsp;info@countywaterwells.co.uk&nbsp;</span> <span class="websitestext">or</span> <span class="websitestext">&nbsp;county.w.wells@ntlworld.com&nbsp;<br />
&nbsp;Telephone: Stuart or Linda (01942) 795 779 or Mobile: Stuart 07712 623 413</span><br />
<br />
<a href="http://www.websites.pwp.blueyonder.co.uk/Ed Eastham Portraits/easthamframes.htm" target="_blank"><img src="images/edeasthamwebsite.gif" alt="Website Design" width="300" height="50" align="left" /> </a><span class="emailweb"><a href="http://www.websites.pwp.blueyonder.co.uk/Ed Eastham Portraits/easthamframes.htm" target="_blank">&nbsp;www.EdEasthamPortraits.co.uk&nbsp;</a><br />
</span><span class="websitestext">&nbsp;ed.eastham@gmail.com&nbsp;<br />
&nbsp;Telephone: 07974 642 160 </span><br />
<br />
<span class="emailweb"><a href="http://www.littlestars-daynursery.co.uk" target="_blank"><img src="images/littlestarswebsite.gif" alt="Website Design" width="300" height="50" align="left" /></a><a href="http://www.littlestars-daynursery.co.uk" target="_blank">&nbsp;www.LittleStars-DayNursery.co.uk&nbsp;</a><br />
</span><span class="websitestext">&nbsp;littlestars-daynursery@hotmail.co.uk&nbsp;<br />
&nbsp;Telephone: (01772) 768687</span><a href="http://www.littlestars-daynursery.co.uk" target="_blank"><br />
</a></p>
</div>
<div id="work">Recent work<br />
<a href="lightbox/images/BB.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Recent work - Butterfly Bouquets Florist"> <img src="images/butterflybouquets-a.gif" alt="Recent work" width="175" height="30" border="1"/></a><br />
<a href="lightbox/images/CP.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Recent work - www.TheCarrierPigeon.co.uk"> <img src="images/carrierpigeon-a.gif" alt="Recent work" width="175" height="30" border="1" /></a><br />
<a href="lightbox/images/CWD.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Recent work - www.CountyWaterwells.co.uk"> <img src="images/countywaterwells-a.gif" alt="Recent work" width="175" height="30" border="1" /></a><br />
<a href="lightbox/images/QFS.gif" rel="lightbox[www.thomasblanchard.co.uk]" title="Recent work - Quality Shop Fittings"> <img src="images/qualityshopfittings-a.gif" alt="Recent work" width="175" height="30" border="1" /></a></div>
<div id="content"></div>
<div id="menus">
<a href="index.html">Home</a> | Portfolio | <a href="prices.html">Price List</a> | <a href="contact.html">Contact Us</a></div>
<div id="footer"> <a href="sitemap.html">Sitemap</a> | <a href="http://validator.w3.org/check?uri=http%3A//www.thomasblanchard.co.uk/portfolio.html&amp;charset=(detect+automatically)&amp;doct ype=Inline&amp;group=0&amp;user-agent=W3C_Validator/1.654">XHTML 1.0</a> <span class="style2">|</span> <a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A//www.thomasblanchard.co.uk/portfolio.html&amp;profile=css21&amp;usermedium=all&amp;warnin g=1&amp;lang=en">CSS</a> <span class="style2">|</span> Copyright
&copy; Thomas Blanchard Digital Design. All rights reserved.</div>
</div>
</body>
</html>


I'm going bogeyed looking at this to try and sort it out I need a fresh set of eyes to glance over it and help please.

Regards
Blanchard

Corrosive
02-15-2010, 06:05 AM
Don't you need a '/' before the end of the tag in xHTML? Like />

edbr
02-15-2010, 07:35 AM
no should be
<html xmlns="http://www.w3.org/1999/xhtml">

Corrosive
02-15-2010, 07:40 AM
Ah, sorry. Should have worded that better. I meant at the end of each image tag, not the doctype.

edbr
02-15-2010, 07:46 AM
i think its the spaces in "Ed Eastham Portraits" in the link