Results 1 to 9 of 9

Thread: W3C Validator errors

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default W3C Validator errors

    Hi,
    Are you able to please take a look at these 3 errors after using the W3C Validator.
    Here is the report.
    http://validator.w3.org/check?uri=ht...org%2Fservices

    Page in question http://www.theremotedoctor.co.uk/honda_programming.html

    After working my way through a few errors i am now stuck with the following & not sure what the correct answers would be
    Line 10,26 & 35

    Thanks very much.
    Last edited by theremotedr; 05-14-2015 at 06:02 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Line 10 it's (,chrome=1 is) deprecated, but it's conceivable some people are still using the chrome frame plug-in for IE (support has stopped but there is still a stable version in use for IE up to version 9). So, if you want to support that (I have no idea what it is, Google - 'Chrome Frame' for details) you can still use that tag and ignore the error - it's not hurting anything. If you want to eliminate the error report, make the tag look like so:

    Code:
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    IE 9 and less will be fine either way, and IE 10 and up, and all other browsers ignore it.

    Line 26 is actually wrong, not an error as far as I and many others who have examined this issue are concerned. But it's possible it's technically an error. Either way it hurts nothing. If you want it to go away change:

    Code:
    <script type="text/javascript" src="js/selectionscroll/bookmarkscroll.js">
    
    /***********************************************
    * Scrolling HTML bookmarks- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Project Page at http://www.dynamicdrive.com for full source code
    ***********************************************/
    
    </script>
    to:

    Code:
    <script type="text/javascript" src="js/selectionscroll/bookmarkscroll.js">
    
    //***********************************************
    //* Scrolling HTML bookmarks- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    //* This notice MUST stay intact for legal use
    //* Visit Project Page at http://www.dynamicdrive.com for full source code
    //***********************************************/
    
    </script>
    Line 35 - There's a technically illegal character in the URL used for the href value of the link tag. It's the | character, which can be replaced by:

    %7C

    and then validate and still work as the intended href. Change:

    Code:
    <link href='http://fonts.googleapis.com/css?family=Droid+Serif|Ubuntu' rel='stylesheet' type='text/css'>
    to:

    Code:
    <link href='http://fonts.googleapis.com/css?family=Droid+Serif%7CUbuntu' rel='stylesheet' type='text/css'>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    theremotedr (05-17-2015)

  4. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    All the above have now be change and across the site its much better.
    I have two more requests below please.

    http://validator.w3.org/check?uri=ht...org%2Fservices

    http://validator.w3.org/check?uri=ht...org%2Fservices

  5. #4
    Join Date
    Mar 2011
    Posts
    2,144
    Thanks
    59
    Thanked 116 Times in 113 Posts
    Blog Entries
    4

    Default

    Link #1

    Error #1
    The language attribute of the <script> element has been depricated.
    Change line #184 from
    Code:
    <script language="JavaScript1.2">
    to
    Code:
    <script type="text/javascript">
    Error #2
    Not sure about this one

    Error #3
    The div #main .wrapper is closed before its child section element is closed.
    Change
    Code:
      </aside><!-- #end left sidebar -->
       
    </div><!-- #end div #main .wrapper -->
    to
    Code:
      </aside><!-- #end left sidebar -->
        </section>
    </div><!-- #end div #main .wrapper -->
    Error #4
    Will be fixed once #3 is done

    Warning #1
    Should be fixed once #3 is done

    Link #2

    Warning #1
    This block of code
    HTML Code:
    <!-- content area -->    
    	<section id="content" class="wide-content">
        	<div class="grid_4">
                <img src="m-images/skp900-advert.jpg" alt="skp-900" width="287" height="148" />
              <p>Super OBD SKP-900 Key Programmer, Updated each month to keep inline with the modern technology that is currently in use today.</p>
          </div>
            
            <div class="grid_4">
                <img src="m-images/x100-advert.jpg" alt="x100+" />
                <p>Diagnostic programmer which is a favourite with Honda vehicles. Connected to the OBD2 port it programmes Honda keys with ease.</p>
            </div>
            
            <div class="grid_4">
                <img src="m-images/dr-card-advert.jpg" alt="remote dr card" />
                <p>Based in Weston Super Mare i offer a mobile service for Honda key programming. I will also travel to the surrounding areas.</p>
            </div>
    
    	</section><!-- #end content area -->
    Doesn't contain any header tags. All section's are supposed to include a header.

  6. The Following User Says Thank You to keyboard For This Useful Post:

    theremotedr (05-17-2015)

  7. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Wow, that's such an old error I guess you never learned about it. The ilayer tag is deprecated. And, as it so happens so are the browsers that used it and any code meant to support them/it. So, to fix this on the slideshow page:

    Line 253, Column 122: Element ilayer not allowed as child of element section in this context. (Suppressing further errors from this subtree.)
    The tag can simply be removed. Get rid of this:

    Code:
    <ilayer id="slidensmain" width=&{slidewidth}; height=&{slideheight}; bgColor=&{slidebgcolor}; visibility=hide><layer id="slidenssub" width=&{slidewidth}; left=0 top=0></layer></ilayer>
    It will not affect the slideshow because that part of the slideshow script which supports browsers like Netscape 4 and earlier (which are never used) is also never used.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. The Following User Says Thank You to jscheuer1 For This Useful Post:

    keyboard (05-13-2015)

  9. #6
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Now corrected.

    I am just going through the site for others.

  10. #7
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Been through the site and have this only.

    http://validator.w3.org/check?uri=ht...org%2Fservices

    The second is about the heading,do i really need it ?
    I deleted them to gain space on the pages.
    If i put headings on some pages they will all but pushed down the page a tough.
    I assume my choice is ok to do this but is it as simple as that,please advise.

  11. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's a warning, not an error. Best practices generally uses headings for SEO and ease of use by humans by making it clearer what the site and the page is about. However it is already very clear what the site is about, and probably the page as well, let me check. The page's title says it all. You don't need headings for such a straight forward topic.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  12. #9
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Many thanks for your time & help.

Similar Threads

  1. Doctype validator errors
    By bwjohnson200 in forum HTML
    Replies: 0
    Last Post: 05-26-2009, 03:16 PM
  2. Replies: 2
    Last Post: 02-02-2009, 10:07 PM
  3. Replies: 13
    Last Post: 07-08-2008, 06:21 PM
  4. Replies: 9
    Last Post: 06-16-2008, 01:00 PM
  5. SSI errors on W3C validator
    By questions in forum Other
    Replies: 18
    Last Post: 01-30-2008, 06:42 AM

Bookmarks

Posting Permissions

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