homepage Welcome to WebmasterWorld Guest from 54.234.225.23
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Trying to validate HTML 4 transitional
Why won't this validate...?
DiAMOndDavE




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

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]

 

jdMorgan




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

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

DiAMOndDavE




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

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

tedster




msg:963779
 4:50 am on Mar 18, 2003 (gmt 0)

The height attribute was always browser-specific code AFAIK, and never part of the W3C recommendation.

g1smd




msg:963780
 9:28 pm on Mar 23, 2003 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved