Site Validation from W3C

11 replies
General question to fix validation errors on site. I'm using the W3C Markup Validation service. Is the Unicorn Validation apply to CSS ? There are 2 columns with numbers. The 1st column is the line error#. The second column is the column#.

How do you know where to go? How do you get to the column in question?
Which file has the errors? I'm lost where to go.

An explanation and direct me into the right direction is appreciated.
#site #validation #w3c
  • Profile picture of the author Bruce Hearder
    Is it possible to post the URL for the site you want to validate? if so, then we can try and post some meaningful replies on how to read the error messages.

    Take care

    Bruce
    {{ DiscussionBoard.errors[2489396].message }}
  • Profile picture of the author Bruce Hearder
    Is it possible to post the URL for the site you want to validate? if so, then we can try and post some meaningful replies on how to read the error messages.

    Take care

    Bruce
    {{ DiscussionBoard.errors[2489399].message }}
  • Profile picture of the author Bruce Hearder
    When using the W3 service, make sure you click on the checkboxes that say :
    - show source
    - show outline
    - verbose output.

    Then hit the re-validate button.

    Now when it shows the errors, its will give you a line number (that is a clickable link) and will take you to where the error is occurring.

    Just a quick look at your HTML, shows the following error :
    <ul class="clearfix" style="font-size: 16px">
    <strong>
    <li class="current_page_item"><a rel="bookmark" title="Home" href="http://electricecigarette.com">Home</a></li>

    This will generate an error (validation error, not a dsiplay error) because a <strong> tag can't be applied to an <li> tag, or an <a> tag. It can onluy be applied to text. So it should loom like this :

    <ul class="clearfix" style="font-size: 16px">
    <li class="current_page_item"><a rel="bookmark" title="Home" href="http://electricecigarette.com"><strong>Home</strong></a></li>

    Fixing just this one error, will fix a bunch of others..

    Hope this helps

    Bruce
    {{ DiscussionBoard.errors[2489465].message }}
    • Profile picture of the author tresfavian
      Okay Bruce, Thanks. how do I change it? If I Click on the Line link it takes
      me down to the line item but how do I change the error? I must have to go
      to the file but which files? I'm lost as how to get to the actual file where the error is placed on.
      {{ DiscussionBoard.errors[2489504].message }}
  • Profile picture of the author Bruce Hearder
    You will have to make the changes on your site itself. Using some sort of web dev tool such a dreamweaver or even notepad is pushed!

    You can't make the changes on the w3 site

    Hope this helps

    Bruce
    {{ DiscussionBoard.errors[2489508].message }}
    • Profile picture of the author tresfavian
      Yes, Bruce, your helping me so far. Still wondering how do I know which file?
      My wordpress site has php files. I checked each one individually and they
      all say it passes. I'm sorry if I am such a nerd at this.

      I can use dreamweaver or notepad++. I'm still in the dark where exactly I'm suppose to go. Can you give me a little more step by step to get me going?
      Do I take each php file and look for these errors? Where are these files?
      Right now I'm in Appearance Editor where I can edit php files. Am I in the right place? Thanks.
      {{ DiscussionBoard.errors[2489525].message }}
  • Profile picture of the author Bruce Hearder
    No that wont really help

    The PHP code in WP is generating the HTML, so its not in the php files itself.
    You are gonna have to go through each PHP file (most likely just the ones in the plugins you have installed, or even better still, just the one associated with your template) and look for the offending code, and try and fix it.

    The big questions is WHY are you bothering? No disrepect intended!
    If the site is indexed in google, thendon't worry about it.

    having a site that is HTML & CSS validated doesn't really help with search engine rankings. Its something the propellor heads love to do, but in the real world it not that important.

    Take care

    bruce
    {{ DiscussionBoard.errors[2489557].message }}

Trending Topics