#1
  1. No Profile Picture
    Give peace a chance.
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    Buenos Aires, Argentina
    Posts
    83
    Rep Power
    14

    Unhappy validating xhtml and css with w3c


    I'm trying to make my pages full compilant with xhtml 1.0 (strict) and css and I'm using w3c validators to check for errors, I solved most of the errors, but there are some I can't solve, first of all, I have a script tag in the head tag and I get the error:
    <script type="text/javascript" language="JavaScript">
    Error: there is no attribute "language" for this element (in this HTML version)
    how should I write this tag without the language elemnt ? just the type ? is that enogh ?

    And I have some other errors, are this error because this properties should be seted up with css ?

    <td width="160" align="left" valign="top" class="menu">
    Error: there is no attribute "width" for this element (in this HTML version)

    ... php?page=home"><img src="images/homed.gif" border="0" width="144" heig ...
    Error: there is no attribute "border" for this element (in this HTML version)

    ... omed.gif" border="0" width="144" height="34" name="home" alt="Home" on ...
    Error: there is no attribute "name" for this element (in this HTML version)

    ... ight="31" border="0" alt="SourceForge Logo" align="right" />
    Error: there is no attribute "align" for this element (in this HTML version)

    And when checking my css I've get this error and I don't really understand it, could you help me ?
    Error
    Target: http://209.99.230.188/ASAPlate/web/ org.xml.sax.SAXException: Please, fix your system identifier (URI) in the DOCTYPE rule.
    Thank you.
  2. #2
  3. No Profile Picture
    Not there when you need me
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Oct 2001
    Location
    Berlin, Germany
    Posts
    1,430
    Rep Power
    14
    In HTML 4.01, the language attribute is deprecated in favour of type. See also
    http://www.w3.org/TR/1999/REC-html40....html#h-18.2.1

    The width attribute of the td tag is deprecated, use CSS.
    http://www.w3.org/TR/1999/REC-html40....html#h-11.2.6

    Quoting from http://www.w3.org/TR/1999/REC-html40...ts.html#visual :
    All IMG and OBJECT attributes that concern visual alignment and presentation have been deprecated in favor of style sheets.
    Next two errors: give the complete tags or RTFM yourself.

    DOCTYPE: Cf. http://www.w3.org/TR/xhtml1/#docconf , 3.1.1. rule 4, where DOCTYPE samples are given.

IMN logo majestic logo threadwatch logo seochat tools logo