Markup validation

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

    Markup validation

    I just got through validating apage at w3c org. I got 300 errors.
    But...the errors say things like color is no longer an attribute! What are
    they talking about!
    Can anyone shed any light as to why color can not be an attribute?
    And body!!! Body is not an attribute! Background color is not allowed! Am I
    living on the same planet?
    It feels to me like there aren't any attributes left!
    Gary


    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.647 / Virus Database: 414 - Release Date: 29/03/2004


  • Matthias Gutfeldt

    #2
    Re: Markup validation

    Gary Finnigan wrote:[color=blue]
    > I just got through validating apage at w3c org. I got 300 errors.
    > But...the errors say things like color is no longer an attribute! What are
    > they talking about!
    > Can anyone shed any light as to why color can not be an attribute?
    > And body!!! Body is not an attribute! Background color is not allowed! Am I
    > living on the same planet?
    > It feels to me like there aren't any attributes left![/color]

    Depends on the HTML version you're validating against. HTML Strict
    generally allows fewer presentational attributes than HTML Transitional.
    And of course many of the presentational attributes in use have never
    been valid at all.

    Ideally most, if not all, presentational attributes should be removed
    and the styling done with CSS. If you really can't use CSS instead of
    presentational HTML attributes, you're probably better off with HTML
    Transitional.

    What's the URL of the page you're trying to validate?


    Matthias


    Comment

    • Jim Roberts

      #3
      Re: Markup validation


      "Gary Finnigan" <gjfinnigan@tal k21.com> wrote in message
      news:_m9bc.1134 7$Id.2337@news-binary.blueyond er.co.uk...[color=blue]
      > I just got through validating apage at w3c org. I got 300 errors.
      > But...the errors say things like color is no longer an attribute! What are
      > they talking about!
      > Can anyone shed any light as to why color can not be an attribute?
      > And body!!! Body is not an attribute! Background color is not allowed! Am[/color]
      I[color=blue]
      > living on the same planet?
      > It feels to me like there aren't any attributes left!
      > Gary[/color]

      What's the url? What is the doctype of the page in question? Need some
      info...

      Jim Roberts


      Comment

      • DU

        #4
        Re: Markup validation

        Gary Finnigan wrote:
        [color=blue]
        > I just got through validating apage at w3c org. I got 300 errors.
        > But...the errors say things like color is no longer an attribute! What are
        > they talking about!
        > Can anyone shed any light as to why color can not be an attribute?
        > And body!!! Body is not an attribute! Background color is not allowed! Am I
        > living on the same planet?
        > It feels to me like there aren't any attributes left!
        > Gary
        >
        >
        > ---
        > Outgoing mail is certified Virus Free.
        > Checked by AVG anti-virus system (http://www.grisoft.com).
        > Version: 6.0.647 / Virus Database: 414 - Release Date: 29/03/2004
        >
        >[/color]

        If you go

        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
        (...)

        <font color="red" ...>
        <table bgcolor="blue" ...>

        then yes, color and bgcolor are deprecated attributes. Body is not an
        attribute in any/all webpages; body is never an attribute.

        It would have been best if you could have provided an url.

        DU

        Comment

        Working...