CSS Validator

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Neal

    CSS Validator

    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.


  • David Dorward

    #2
    Re: CSS Validator

    Neal wrote:
    [color=blue]
    > 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![/color]
    [color=blue]
    > It of course should be
    >
    > <img ...
    > alt="Valid CSS!" />[/color]

    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/>

    Comment

    • Jukka K. Korpela

      #3
      Re: CSS Validator

      "Neal" <neal@spamrcn.c om> wrote:
      [color=blue]
      > On jigsaw.w3.org, when you've validated your CSS they suggest you
      > put an icon on your page.[/color]

      That's bad advice. Those icons are worse than useless. Arguments:

      (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).
      [color=blue]
      > The thing is, the img tag isn't XHTML compliant![/color]

      Excuse me while I yawn.
      [color=blue]
      > It of course should be
      >
      > <img ...
      > alt="Valid CSS!" />
      >
      > to work in all environments.[/color]

      Nonsense. There is not a single browser that cannot handle the tag
      without the slash.
      [color=blue]
      > Then again, the argument could be made
      > that you ought to be able to pick up on this if you're coding to
      > XHTML,[/color]

      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/

      Comment

      • ICHwesen

        #4
        Re: CSS Validator

        Jukka K. Korpela wrote:

        [color=blue]
        > 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.
        >[/color]
        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 ;-)

        Comment

        • Matthias Gutfeldt

          #5
          Re: CSS Validator

          ICHwesen wrote:[color=blue]
          > Jukka K. Korpela wrote:
          >
          >[color=green]
          >> 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.
          >>[/color]
          > there may be no such thing as free lunch, but there definitely IS CSS
          > validity.[/color]

          Perhaps. But there is no CSS validity "as it applies to HTML as
          (formally) an SGML or XML application".


          Matthias

          Comment

          • Jukka K. Korpela

            #6
            Re: CSS Validator

            ICHwesen <ICHwesen@web.d e> wrote:
            [color=blue]
            > 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.[/color]

            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/

            Comment

            Working...