Welcome to WebmasterWorld Guest from 54.163.142.67

Forum Moderators: mack

Message Too Old, No Replies

Validating Pages

Having Problems Validating Pages

     
1:18 pm on Aug 30, 2003 (gmt 0)

New User

10+ Year Member

joined:Aug 30, 2003
posts:23
votes: 0


Hi Everyone,

Thanks for having such a great forum. I just found you and have been busy reading and soaking up information.

I'm having some problems. I hope someone can help.

I'm trying to validate my html document using:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<HEAD>
<TITLE>Title Here</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">

and I keep getting two error messages:

1. Line 62, column 27: there is no attribute "HEIGHT" (explain...).
height="110" cellpadding="0"
^

2. Line 75, column 56: there is no attribute "BACKGROUND" (explain...).
background="./images/greygrad.gif">
^

I've tried with just about every imaginable choice imagineable. My page is pretty simple ... it has some javascript and uses CSS extensively ... but nothing out of the norm. And I just can't get these last two errors.

Does anybody have any idea what alternative I can use?

Thank You.

Darla

1:48 pm on Aug 30, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 29, 2002
posts:980
votes: 0


Hi there Darla,

For the first error it appears you have set a height attribute on your table. This is not in the w3c html 4.01 transitional spec, so gets reported as an error.

Removing the 'height="110"' bit will fix the error but may change your layout. If you need to fix this try using CSS to add padding or margins.

The second error appears to be using a background image attribute on a table, again not w3c-standard html. You could move this into a CSS style sheet like

.mytable {
background:url(images/greygrad.gif)
}

HTH.

10:45 am on Aug 31, 2003 (gmt 0)

New User

10+ Year Member

joined:Aug 30, 2003
posts:23
votes: 0


Hi,

Thank you sooooo much!

That did the trick!

Don't know why I hadn't thought of that .... think I've been doing way too much coding the last week ;o)

I really appreciate your help.

Take care!

Darla

11:01 am on Aug 31, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 26, 2003
posts:881
votes: 0


Ps. You can set the height in CSS also, height: 110px;

Jordan