Forum Moderators: open

Message Too Old, No Replies

attribute won't validate

         

quarryshark

6:54 pm on Jan 18, 2007 (gmt 0)

10+ Year Member



Error Line 80 column 19: there is no attribute "BACKGROUND".

<td background="#*$!.gif"width="20">&nbsp;</td>

Won't validate with HTML 4.01 Transitional
Anything I could replace it with?
TIA

quarryshark

8:23 pm on Jan 18, 2007 (gmt 0)

10+ Year Member



only 2 errors left, down from 49!
The beforementioned error along with this one

29: there is no attribute "ONCONTEXTMENU".
<img oncontextmenu="return false;" alt="This Web site has chosen....

Anyone?

phranque

10:40 pm on Jan 18, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



which browser?

i believe "oncontextmenu" for img tags is only supported by IE.

<td background="#*$!.gif"width="20">&nbsp;</td>

try adding a space between the 2nd quote and the "width" keyword:

<td background="#*$!.gif" width="20">&nbsp;</td>

tedster

12:06 am on Jan 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The td element never had a valid background attribute that I know of. You want this, I think:

<td style="background-image:url(example.gif)" width="20">&nbsp;</td>

quarryshark

3:44 am on Jan 19, 2007 (gmt 0)

10+ Year Member



Nothing worked, sorry. They change that code every year because of the cheaters.
Damn, I wish they would just give us a URL to play with. After all, we pay them...lol.
They offer an image logo, I'm going to try something. Will keep you posted.

quarryshark

4:24 am on Jan 19, 2007 (gmt 0)

10+ Year Member



Once I deleted the Verisign logo, we validated....Yaaa...lol
Now I have to find a version of it that works. No wonder so many cheat with their logo.

quarryshark

5:41 pm on Jan 19, 2007 (gmt 0)

10+ Year Member



any way i can make this script validate?
<script src=https://seal.verisign.com/getseal?host_name=www.#*$!xx.com&size=S&use_flash=NO&use_transparent=YES&lang=en></script>
Thanks

pageoneresults

6:05 pm on Jan 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Escape the ampersands and quote the src.

<script src="https://seal.verisign.com/getseal?host_name=www.#*$!xx.com&amp;size=S&amp;use_flash=NO&amp;use_transparent=YES&amp;lang=en"></script>

P.S. Is there a <noscript> alternative?

quarryshark

7:06 pm on Jan 19, 2007 (gmt 0)

10+ Year Member



Thanks, made the changes.
But now I'm getting this error

Error Line 355 column 167: required attribute "TYPE" not specified.
...&amp;use_transparent=YES&amp;lang=en"></script></p>

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML

this
">
is highlighted.

jimbeetle

7:52 pm on Jan 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yeah, the Type attribute is required in the script element. Try adding type="text/javascript" (if, in fact, it is javascript).

<script type="text/javascript" src="https://seal.verisign.com/getseal....</script>

pageoneresults

7:55 pm on Jan 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<script type="text/javascript" src="https://seal.verisign.com/getseal?host_name=www.#*$!xx.com&amp;size=S&amp;use_flash=NO&amp;use_transparent=YES&amp;lang=en"></script>

Ooops.

quarryshark

8:03 pm on Jan 19, 2007 (gmt 0)

10+ Year Member



Thats it! You guys are great, thanks much!
Validation complete. Now its time for the other 300 pages..lol

quarryshark

2:19 am on Jan 20, 2007 (gmt 0)

10+ Year Member



Another problem I'm not sure how to deal with. On my catalog page, I'm find this error a lot.

Error Line 285 column 87: document type does not allow element "TABLE" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.
...spacing="0" width="100%" id="table30">

Here is the code. Its for some needed tables.
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table30">

pageoneresults

4:55 am on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Its for some needed tables.

Did you mean to say nested tables? ;)

I believe that error is coming from a nesting problem above it. The easiest way to validate your page is to take the errors the validator is presenting in the order they are presented. You'll find that many of the errors are cascading and happen because something above isn't right. Correct the errors from the top of the list and work your way down.

id="table30">

That last part concerns me. Usually table ids are assigned automatically by WYSIWYG Editors. If you are up to table30 on a single page, there could be quite a few issues you will be faced with. Are you nesting? If so, how many tables do you have inside the main table?

quarryshark

6:13 am on Jan 20, 2007 (gmt 0)

10+ Year Member



Yup, I figured it out. Thanks for the direction.
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table30"

This is a series of tables from a catalog page. The above is the first and had an H2 tag in a wrong spot like this.

</table>
<h2>#*$!<h2/>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table30"

This caused the remaining table to show up in error. Man I learn something every step in this process.

One more is giving me problems. An order buttom.

what wrong with this tag?
<img border="0" id="img1" src="photo/button47.gif" height="20" width="100" alt="order" fp-style="fp-btn: Glass Rectangle 1; fp-font-size: 12; fp-img-hover: 0; fp-img-press: 0; fp-preload: 0; fp-bgcolor: #0000FF; fp-transparent: 1" fp-title="order"></a></td>

States there is there is no attribute "FP-STYLE" or "FP-TITLE".

pageoneresults

12:51 pm on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



States there is there is no attribute "FP-STYLE" or "FP-TITLE".

Yikes! It looks like you are using FrontPage's button creation feature. Shame on you! ;)

You have to be careful with some of the WYSIWYG features of FrontPage. The code you are referring to is a proprietary format for IE. It is not valid markup and it will need to be removed before you can go any further. If you have quite a few of these features, you're going to run into quite a few errors because of the proprietary FP/IE code.

g1smd

1:24 pm on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>> This is a series of tables from a catalog page. The above is the first and had an H2 tag in a wrong spot like this. <<

</table>
<h2>#*$!<h2/>
<table>

No. The heading is fine there.

What is wrong is that <h2/> should be </h2> instead.

quarryshark

2:44 pm on Jan 20, 2007 (gmt 0)

10+ Year Member




Yikes! It looks like you are using FrontPage's button creation feature. Shame on you! ;)

Ok, point well taken. I need to go on a button hunt then. The site will have 100s of them, I need something that works well.

As for the H2 tag, that was my own typo of 14 hour looking at this screen yesterday. :)

pageoneresults

2:57 pm on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I need to go on a button hunt then.

Look for buttons that are created using pure CSS. Try to stay away from any scripted button effects, there really is no need for them, not with the CSS support available.

quarryshark

3:02 pm on Jan 20, 2007 (gmt 0)

10+ Year Member



Gotcha, thanks.
Makes sense, the less effects the easier to deal with.

commanderW

4:48 am on Jan 21, 2007 (gmt 0)

10+ Year Member



Hi - I am as new at all this as you can get ( typed my very 1st 20 pages of html/css in last 2 weeks - Thanks everyone!), but i'm pretty sure that the code just posted on the table problem has the opening & closing tags reversed. From quarryshark

</table>
<h2>#*$!<h2/>
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table30"

should it be more like

<table border="0" cellpadding="0" cellspacing="0" width="100%" id="table30" >
<h2>#*$!<h2/>
</table>

From g1smd

</table>
<h2>#*$!<h2/>
<table>

should be ( with their correction on the h2 closing tag included)

<table>
<2>#*$!</h2>
</table>

So here there are 2 different tags w/3 different typos. Maybe that's all many of your problems are from. ( i.e. Looking at the screen too long. :)