...

View Full Version : How to correct this validator error?



noneforit
07-07-2009, 02:18 PM
Hello

Changed to strict rather than transitional doc type and I got only two errors which both relate the the same piece of code...

http://validator.w3.org/check?uri=www.noneforit.com%2Fmarie%2Findex.html&charset=(detect+automatically)&doctype=Inline&group=0

Have tried removing the statement and just leaving <html> but this didnt help and am racking my brains??

Any help would be appreciated

Rowsdower!
07-07-2009, 03:12 PM
You are seeing the error because you are using XHTML attributes with an HTML doctype:

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" >

You had the right idea with dropping the extra attributes. Just dropping the tag to be <html> worked for me in the validator. Are you sure you uploaded the change when you tried it?

Try entering this into the "direct input" tab of the validator and you'll see what I mean:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Arbour Tree Surgery 'Trust Your Local Experts' Fully insured and qualified tree surgeons in Maidstone, hedge cutting service, garden mulch, firewood and logs supplied.Medway, farleigh, Hollingbourne, Harrietsham, Staplehurst, Sittingbourne - Home</title>
<meta name="GENERATOR" content="SWsoft">
<meta name="ID" content="sitebuilder_1236887862">
<meta name="KEYWORDS" content="Tree Surgery Maidstone,Tree Surgery,Tree Surgeons Maidstone,Tree Surgeons,Hedge Cutting,Garden Mulch,Mulch,Firewood,Maidstone,Sittingbourne,Staplehurst,Farleigh,Cranbrook,Tenterden,Hucking,Kent,M edway,Rochester,Hollingbourne,Harrietsham,TunbridgeWells,Logs">
<meta name="DESCRIPTION" content="Arbour Tree Surgery are fully insured &amp; qualified tree surgeons offering a friendly and professional service in Madistone and surrounding areas Free quotations">
<link href="css/Main.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="header"></div>
<div id="maintext"><div id="links">
<div id="menu">
<ul>
<li><a href="index.html">home</a></li>
<li><a href="photogallery.html">Photo Gallery</a></li>
<li><a href="areas.html">Area's Covered</a></li>
<li><a href="contactus.html">contact us</a></li>
</ul>
</div>

</div>
<h3>Felling Maidstone Tunbridge Wells~Pruning Maidstone Tunbridge Wells~Hedge cutting Maidstone Tunbridge Wells ~Stump grinding Maidstone Tunbridge Wells ~Firewood logs Maidstone Tunbridge Wells ~Wood Chippings Maidstone Tunbridge Wells </h3>
<br>
<h6>01622 759119 - 01892 837011 - 07771 970570 </h6>
<br>
<h5> Arbour Tree Surgery offer a friendly and professional service, covering all aspects of tree work including: </h5>
<br>
<h6>Crown lifting and reducing <br>
Felling <br>
Pruning <br>
Shaping <br>
Hedge Cutting <br>
Stump Grinding </h6>
<br>
<h2>Customer service is our number one priority and with all our experience in tree surgery we are sure we can provide you with the service and reassurance you will need. We fully understand that having tree work undertaken can be very stressful and as professionals we will do every thing we possibly can to make your experience as 'stress free' as possible. This includes guiding you through and explaining every step of the process. We have 5m Public Liability insurance and are NPTC qualified and you can be assured that with Arbour Tree Surgery Ltd you and your trees are in safe hands.
<br><br>
At Arbour Tree Surgery we respect the environment and we use only non-toxic vegetable based chain oils. Also, all waste removed from site is recycled.

We appreciate that people work during the day and are more than happy to visit you in the evenings and at weekends, at your convenience, to give you a 'free' no obligation written quotation. </h2>
<br>
<h6>Logs/Seasoned Firewood</h6>
<br>
<h2>We can supply firewood by the trailer or truck load. Our firewood is suitable for both open fires and wood burning stoves. Please call to arrange delivery. Wood Chippings We can also supply wood chippings by the full or part truck load. Please call for prices </h2>
<p>
&nbsp;</p>
<h3>Felling Maidstone Tunbridge Wells~Pruning Maidstone Tunbridge Wells~Hedge cutting Maidstone Tunbridge Wells ~Stump grinding Maidstone Tunbridge Wells ~Firewood logs Maidstone Tunbridge Wells ~Wood Chippings Maidstone Tunbridge Wells </h3>
</div>
</body>
</html>

You'll still see 1 warning, but that is only because it is testing direct input and not a page download from online. When testing direct input the validator ignores the encoding meta tag...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum