Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Validation problem

Reply
Thread Tools

Validation problem

 
 
Paul F. Johnson
Guest
Posts: n/a
 
      12-27-2003
Hi,

I've got the vast majority of the ReelNorth
(http://www.reelnorth.co.uk) website to validate at w3c except for about 3
pages.

The problem with the pages are multiple calls to the same definition on a
style sheet.

If you look at
http://ahnews.music.salford.ac.uk/re...1/alexcox.html, you'll
see the problem. I use <div id="int">, <div id="q"> and <div id="r">
throughout the page which according to w3c is a definate neddy-no-no. This
page has no chance of validating, despite everything else being happy.

Is there a better way I can write this page so that it will validate?

TTFN

Paul
--
One OS to fool them all
One browser to find them
One email client to bring them all
And through security holes, blind them...

 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      12-27-2003
in post <news>
Paul F. Johnson said:

> http://ahnews.music.salford.ac.uk/re...1/alexcox.html, you'll
> see the problem. I use <div id="int">, <div id="q"> and <div id="r">
> throughout the page which according to w3c is a definate neddy-no-no.


an ID is supposed to be unique to the document. change them to classes
and also consider using more appropriate names.

> This page has no chance of validating, despite everything else being
> happy.


line 32 is not happy.

--
brucie
27/December/2003 11:38:09 pm kilo
 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      12-27-2003
Paul F. Johnson wrote:

> If you look at
> http://ahnews.music.salford.ac.uk/re...1/alexcox.html, you'll
> see the problem. I use <div id="int">, <div id="q"> and <div id="r">
> throughout the page which according to w3c is a definate neddy-no-no. This
> page has no chance of validating, despite everything else being happy.
>
> Is there a better way I can write this page so that it will validate?


An id says "This is the one and only thing called FOO in this document." Try
class instead ("This is a member of the group of elements BAR").

http://css-discuss.incutio.com/?page=ClassesVsIds

(Make sure you change your style sheet to use class selectors instead of id
selectors)

--
David Dorward <http://dorward.me.uk/>
 
Reply With Quote
 
PeterMcC
Guest
Posts: n/a
 
      12-27-2003
Paul F. Johnson wrote:
> Hi,
>
> I've got the vast majority of the ReelNorth
> (http://www.reelnorth.co.uk) website to validate at w3c except for
> about 3 pages.
>
> The problem with the pages are multiple calls to the same definition
> on a style sheet.
>
> If you look at
> http://ahnews.music.salford.ac.uk/re...1/alexcox.html,
> you'll see the problem. I use <div id="int">, <div id="q"> and <div
> id="r"> throughout the page which according to w3c is a definate
> neddy-no-no. This page has no chance of validating, despite
> everything else being happy.
>
> Is there a better way I can write this page so that it will validate?


ids are once-only on the page - easy enough to change them to classes which
can be used over again.

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Validation Problem...Persisiting form fields on validation failure. bnp Javascript 4 05-12-2004 12:16 PM
ASP.NET Web Forms Validation Controls are Server-Side or Client-Side Validation? Matt ASP .Net 14 01-30-2004 09:15 AM
Web form validation vs object validation Colin Basterfield ASP .Net 1 11-29-2003 12:10 AM
validation summary doesnt display when there's client-side validation Libs ASP .Net 0 06-25-2003 03:05 PM
Re: only custom validation control does server side validation? Colin Mackay ASP .Net 0 06-25-2003 07:54 AM



Advertisments