HighDots Forums  

CSS Validator

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss CSS Validator in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Neal
 
Posts: n/a

Default CSS Validator - 12-10-2003 , 12:31 AM






Just noticed something peculiar. Thought I'd share.

On jigsaw.w3.org, when you've validated your CSS they suggest you put an
icon on your page. The thing is, the img tag isn't XHTML compliant!

<p>
<a href="http://jigsaw.w3.org/css-validator/">
<img ...
alt="Valid CSS!">
</a>
</p>

It of course should be

<img ...
alt="Valid CSS!" />

to work in all environments. Then again, the argument could be made that you
ought to be able to pick up on this if you're coding to XHTML, but I think
that's a misguided point of view. Soon everyone's going to be learning it
that way.

I don't plan to subscribe for this one point, but perhaps someone who does
would be interested in passing this along.



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: CSS Validator - 12-10-2003 , 01:31 AM






Neal wrote:

Quote:
Just noticed something peculiar. Thought I'd share.

On jigsaw.w3.org, when you've validated your CSS they suggest you put an
icon on your page. The thing is, the img tag isn't XHTML compliant!

It of course should be

img ...
alt="Valid CSS!" /
Which, while valid in HTML, is supposed to display the > character - i.e. it
means the same as: <img ... alt="Valid CSS!">&gt;

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #3  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: CSS Validator - 12-10-2003 , 04:25 AM



"Neal" <neal (AT) spamrcn (DOT) com> wrote:

Quote:
On jigsaw.w3.org, when you've validated your CSS they suggest you
put an icon on your page.
That's bad advice. Those icons are worse than useless. Arguments:
http://www.cs.tut.fi/~jkorpela/html/...tion.html#icon
(which is about "Valid HTML!" icons, but exactly the same applies,
actually even stronger, since CSS is less widely known than HTML
to the general public).

Quote:
The thing is, the img tag isn't XHTML compliant!
Excuse me while I yawn.

Quote:
It of course should be

img ...
alt="Valid CSS!" /

to work in all environments.
Nonsense. There is not a single browser that cannot handle the tag
without the slash.

Quote:
Then again, the argument could be made
that you ought to be able to pick up on this if you're coding to
XHTML,
Well, that goes without saying, doesn't it? And if you actually
understand what validity is, as it applies to HTML as (formally) an
SGML or XML application, then you surely understand that there is no
such thing as CSS validity, so this alone should have deterred you from
polluting your page with those icons.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


Reply With Quote
  #4  
Old   
ICHwesen
 
Posts: n/a

Default Re: CSS Validator - 12-10-2003 , 04:59 AM



Jukka K. Korpela wrote:


Quote:
Well, that goes without saying, doesn't it? And if you actually
understand what validity is, as it applies to HTML as (formally) an
SGML or XML application, then you surely understand that there is no
such thing as CSS validity, so this alone should have deterred you from
polluting your page with those icons.

there may be no such thing as free lunch, but there definitely IS CSS
validity. Every programming language has it's rules as does every other
language. Some languages though are not interpreted strictly, that is:
even if you do not code according to the rules, the result may (!) be
the same. So, not only XML-applications can be validated, but every
other language can, including of course CSS.
So, before you go and teach others about validity, please feel free to
consult any basic programming handbook and look up the index for
"validation".

Greets
ICHwesen,
the teacher's teacher ;-)


Reply With Quote
  #5  
Old   
Matthias Gutfeldt
 
Posts: n/a

Default Re: CSS Validator - 12-10-2003 , 05:13 AM



ICHwesen wrote:
Quote:
Jukka K. Korpela wrote:


Well, that goes without saying, doesn't it? And if you actually
understand what validity is, as it applies to HTML as (formally) an
SGML or XML application, then you surely understand that there is no
such thing as CSS validity, so this alone should have deterred you
from polluting your page with those icons.

there may be no such thing as free lunch, but there definitely IS CSS
validity.
Perhaps. But there is no CSS validity "as it applies to HTML as
(formally) an SGML or XML application".


Matthias



Reply With Quote
  #6  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: CSS Validator - 12-10-2003 , 05:54 PM



ICHwesen <ICHwesen (AT) web (DOT) de> wrote:

Quote:
there may be no such thing as free lunch, but there definitely IS CSS
validity. Every programming language has it's rules as does every other
language.
If you think that CSS is a programming language, I'm not surprised at your
thorough confusion. Consider reading a primer on CSS. You can probably find
one via the FAQ.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


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 - 2008, Jelsoft Enterprises Ltd.