Welcome to WebmasterWorld Guest from 54.226.62.251

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Validating Pages

Having Problems Validating Pages

     

neweb

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

10+ Year Member



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

mattur

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

WebmasterWorld Senior Member 10+ Year Member



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.

neweb

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

10+ Year Member



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

MonkeeSage

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

WebmasterWorld Senior Member 10+ Year Member



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

Jordan

 

Featured Threads

Hot Threads This Week

Hot Threads This Month