Welcome to WebmasterWorld Guest from 54.145.136.73

Forum Moderators: brotherhood of lan & mack

Trying to validate HTML 4 transitional

Why won't this validate...?

   
4:30 am on Mar 18, 2003 (gmt 0)

10+ Year Member



Hello folks,

Can't figure out why my page doesn't validate to HTML 4 under a transitional doctype. I get this from the good people at W3C.org:

Line 26, column 29: required attribute "TYPE" not specified (explain...).

<script language="JavaScript">

2.Line 73, column 90: there is no attribute "HEIGHT" (explain...).

...ellpadding="0" align="center" height="340">

I am new to this validation game but I can't figure these two out. Any help is appreciated.

Regards
DiAMOndDavE

[edited by: Marcia at 2:55 pm (utc) on April 20, 2003]
[edit reason] Specific removed. [/edit]

4:38 am on Mar 18, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



DiAMOndDavE,

For problem #1, try:
<script type="text/JavaScript">

The second problem is simply that there is no "height" attribute for a table in 4 transitional, so the validator can't recognize it.

Jim

4:46 am on Mar 18, 2003 (gmt 0)

10+ Year Member



jdMorgan,
Thanks for the reply. I will try your fixit #1. I didn't find the W3C "explain" pages very useful as you can see. I will try to remove the HEIGHT attribute and see if that works too. Can't think of a reason why the W3C would decide that the HEIGHT attribute was not valid coding for a table - but there you go...?
Regards
DiAMOndDavE
4:50 am on Mar 18, 2003 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The height attribute was always browser-specific code AFAIK, and never part of the W3C recommendation.
9:28 pm on Mar 23, 2003 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



You should be using CSS to set those properties for the table and table data now!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month