Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder noneforit's Avatar
    Join Date
    Apr 2009
    Thanked 20 Times in 20 Posts

    How to correct this validator error?


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


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

    Any help would be appreciated

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Some say it's everything.
    Thanked 397 Times in 390 Posts
    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"> 
    <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,Medway,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"> 
    <div id="header"></div> 
    <div id="maintext"><div id="links"> 
    <div id="menu"> 
    <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> 
    <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> 
    <h6>01622 759119 - 01892 837011 - 07771 970570 </h6> 
    <h5> Arbour Tree Surgery offer a friendly and professional service, covering all aspects of tree work including: </h5> 
    <h6>Crown lifting and reducing <br> 
    Felling <br> 
    Pruning <br> 
    Shaping <br> 
    Hedge Cutting <br> 
    Stump Grinding </h6> 
    <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. 
    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> 
    <h6>Logs/Seasoned Firewood</h6> 
    <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> 
    <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> 
    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...
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts