HighDots Forums  

Validation problem

alt.html alt.html


Discuss Validation problem in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paul F. Johnson
 
Posts: n/a

Default Validation problem - 12-27-2003 , 08:31 AM






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/reel_north/series1/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
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Validation problem - 12-27-2003 , 08:49 AM






Paul F. Johnson wrote:

Quote:
If you look at
http://ahnews.music.salford.ac.uk/reel_north/series1/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
  #3  
Old   
PeterMcC
 
Posts: n/a

Default Re: Validation problem - 12-27-2003 , 01:53 PM



Paul F. Johnson wrote:
Quote:
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/reel_north/series1/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
Display Modes

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

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.