Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Dec 2010
    Location
    UK
    Posts
    67
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Exclamation What are these errors? W3 validator errors

    See error log here... http://validator.w3.org/check?uri=ht...alidator%2F1.2

    Are they important? Do they need to be fixed?

    Sorry I'm new to this hence so many 'errors' but no knowledge on how to fix them...

    Thanks for any advice

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Does your page render at all? lol Thats quite a few errors and yes you should definately fix them. Validation errors are cascading in nature, so you will find that fixing one sometimes takes care of others as well. A few of the first errors I saw were in how you named id's and classes for your elements. I dont think you can have spaces in those names. Spaces in any type of filename or image name or html should be avoided.

    ex: <li class="tab4"><a id="heading 3" href="#">exhibitions</a></li>

    See the space between the word heading and the letter 3?
    Teed

  • Users who have thanked teedoff for this post:

    designedbyria (03-24-2011)

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    I would say, yes they need to be fixed.

    For example these errors:
    required attribute X not specified



    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

    Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

    * Line 1402, column 67: required attribute "cols" not specified

    <textarea name="message" rows="4" id="message" textarea="textarea"></textarea>

    * Line 1459, column 67: required attribute "cols" not specified

    <textarea name="message" rows="4" id="message" textarea="textarea"></textarea>

    * Line 1513, column 67: required attribute "cols" not specified

    <textarea name="message" rows="4" id="message" textarea="textarea"></textarea>
    Since you aren't specifying the cols attribute, which is the number of columns, you will just get the default for a given browser and/or platform which will provide an inconsistent look. If you specify the required attribute, you won't have that problem.
    OracleGuy

  • Users who have thanked oracleguy for this post:

    designedbyria (03-24-2011)

  • #4
    New Coder
    Join Date
    Dec 2010
    Location
    UK
    Posts
    67
    Thanks
    15
    Thanked 0 Times in 0 Posts
    thanks teedoff just by sorting removing the spaces the error count has dropped to 69. However now I have 166 warnings and I'm assuming these are more serious :S

    sorry for stupid question oracleguy but how to I specify the cols attribute?

  • #5
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by designedbyria View Post
    thanks teedoff just by sorting removing the spaces the error count has dropped to 69. However now I have 166 warnings and I'm assuming these are more serious :S

    sorry for stupid question oracleguy but how to I specify the cols attribute?
    You're gonna have to post a link to your site, or re-validate and post that link. Your original link still shows all those space errors.

    Just as you specified rows in your textarea, you need to specify cols as well.

    Code:
    rows="4" cols="10"
    I also hope you changed the names of your id's that started with a number...ie "2news"...names cannot begin with numeric.
    Teed

  • #6
    New Coder
    Join Date
    Dec 2010
    Location
    UK
    Posts
    67
    Thanks
    15
    Thanked 0 Times in 0 Posts
    oh ok, well the link to the site is http://creationdesign.co.uk/test/index.php

    A lot of changes have been made, so hopefully that list is a lot shorter


  •  

    Tags for this Thread

    Posting Permissions

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