Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-23-2011, 05:55 PM   PM User | #1
designedbyria
New Coder

 
Join Date: Dec 2010
Location: UK
Posts: 67
Thanks: 15
Thanked 0 Times in 0 Posts
designedbyria is an unknown quantity at this point
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
designedbyria is offline   Reply With Quote
Old 03-23-2011, 06:08 PM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
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
teedoff is offline   Reply With Quote
Users who have thanked teedoff for this post:
designedbyria (03-24-2011)
Old 03-23-2011, 08:39 PM   PM User | #3
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
I would say, yes they need to be fixed.

For example these errors:
Quote:
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
oracleguy is offline   Reply With Quote
Users who have thanked oracleguy for this post:
designedbyria (03-24-2011)
Old 03-24-2011, 09:38 AM   PM User | #4
designedbyria
New Coder

 
Join Date: Dec 2010
Location: UK
Posts: 67
Thanks: 15
Thanked 0 Times in 0 Posts
designedbyria is an unknown quantity at this point
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?
designedbyria is offline   Reply With Quote
Old 03-24-2011, 02:57 PM   PM User | #5
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
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
teedoff is offline   Reply With Quote
Old 03-24-2011, 03:13 PM   PM User | #6
designedbyria
New Coder

 
Join Date: Dec 2010
Location: UK
Posts: 67
Thanks: 15
Thanked 0 Times in 0 Posts
designedbyria is an unknown quantity at this point
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
designedbyria is offline   Reply With Quote
Reply

Bookmarks

Tags
errors, html, xhtml

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:10 AM.


Advertisement
Log in to turn off these ads.