Validation problems - GROAN

This is a discussion on "Validation problems - GROAN" within the Web Page Design section. This forum, and the thread "Validation problems - GROAN are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 14th, 2004, 10:42
Junior Member
Join Date: Mar 2004
Location: United Kingdom
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Validation problems - GROAN

I have tried to validate the following page and have got the following errors. I have looked through your old postings/tutorials and cannot find how to correct these errors. I have also attempted to understand the w3.org explanation (why can they not use simple jargon?). Any ideas/pointers - perhaps to a 'simple' easy to understand XHTML guide?

The page is: http://www.hastings.ac.uk/s2b/test.asp

Errors from w3.org are:
Line 57, column 15: ID "leftcontent" already defined (explain...).
<div id="leftcontent">
^
Line 55, column 13: ID "leftcontent" first defined here (explain...).
<div id="leftcontent">
^
Line 62, column 30: document type does not allow element "ul" here; assuming missing "li" start-tag
<ul class="subnav">
^
Line 72, column 28: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li class="menu"><a href="courses/courses.asp">Training
^
Line 84, column 28: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li class="menu"><a href="train_adv.asp">Free
^
Line 86, column 29: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li class="menu" ><a href="work_exp.asp">Work
^
Line 88, column 28: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li class="menu"><a href="cfb.asp">Colleges
^
Line 90, column 28: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li class="menu"><a href="blc/blc.asp">Business
^
Line 92, column 28: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li class="menu"><a href="contact.asp">Contact
^
Line 94, column 28: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li class="last"><a href="map/find_us.asp">Find
^
Line 96, column 14: end tag for "li" omitted, but OMITTAG NO was specified [/list] ^
Line 62, column 12: start tag was here (explain...).
<ul class="subnav">
^
Apologies for taking the lazy option...but the work load is stacking up...

  #2 (permalink)  
Old Apr 14th, 2004, 11:36
Up'n'Coming Member
Join Date: Feb 2004
Location: Woodbridge, UK
Age: 27
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Trebz Send a message via MSN to Trebz
you have used ID leftcontent more than once. ID's have to be unique to the page.

If this is XHTML then you must close all tags, even[*] tage ([*]Item one)

Fix those and then validate again.
  #3 (permalink)  
Old Apr 14th, 2004, 13:04
Junior Member
Join Date: Mar 2004
Location: United Kingdom
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Many thanks - all fixed and validated. I found that the validator does not like embedded submenus. Solution was to delete the ul tags and merely add a new li class instead - oh and tweak of course. Then delete the redundant ID "leftcontent".

I'm off to the pub for a celebratory G&T - thanks again.
  #4 (permalink)  
Old Apr 17th, 2004, 15:26
New Member
Join Date: Apr 2004
Location: USA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Kikketer
I'm getting the same error (the multiple id one). Why can't you use the same id multiple times on the same page? I have a php page that pulls products off a database and for each product it needs to be formatted using a <div> tag. Now at the end of the product it closes the div tag and then starts over with a new product div tag and goes until there are no more products to display. Having to make 15+ different ids for any given page seems kind of stupid (and seems to defeat the greatness that is CSS).
If I can't figure out how to validate it the way it is, i'm going to have to make:
#product1 {} #product2 {}... #product103832 {}

Does that sound like fun? I don't think so...

Please help!
  #5 (permalink)  
Old Apr 17th, 2004, 19:46
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
where you need multiple items per page, use a class (.) instead.
  #6 (permalink)  
Old Apr 17th, 2004, 21:37
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
eg:-
Code: Select all
<style>.myClass{color:#000000}</style>

<div class="myclass">Some Text</div>
<div class="myclass">More Text</div>
<div class="myclass">Yet more Text</div>]
Make sense?
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Closed Thread

Tags
validation, problems, groan

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
w3c validation cocoonfx Web Page Design 8 Jul 21st, 2007 13:55
Validation JamieH Web Page Design 3 Apr 15th, 2006 01:45
XHTML W3C validation problems Tim356 Web Page Design 5 Oct 11th, 2005 22:46
A few problems with XHTML validation criticalerror Web Page Design 5 May 3rd, 2004 19:35
XHTML validation problems Webforumz Staff Web Page Design 6 Jan 4th, 2004 15:45


All times are GMT. The time now is 03:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43