Forum Moderators: open

Message Too Old, No Replies

Page won't validate when using <marquee>

Marquee or doctype problem I think

         

bigfatarthur

7:28 pm on May 14, 2006 (gmt 0)

10+ Year Member



Hi,

I have a problem. My understanding of doctype is quite limited. My website validated untill I added a marquee. I was wondering if it was the marquee or the doctype

these are the errors

#

<marquee bgcolor="white" scrollamount="2"
^

Error: there is no attribute BGCOLOR for this element (in this HTML version)
# Line 172, character 44:

... bgcolor="white" scrollamount="2"
^

Error: there is no attribute SCROLLAMOUNT for this element (in this HTML version)
# Line 173, character 11:

direction="up" width="90%" style="border-style: solid; borde ...
^

Error: there is no attribute DIRECTION for this element (in this HTML version)
# Line 173, character 22:

direction="up" width="90%" style="border-style: solid; borde ...
^

Error: there is no attribute WIDTH for this element (in this HTML version)
# Line 173, character 34:

... ction="up" width="90%" style="border-style: solid; border-wi ...
^

Error: there is no attribute STYLE for this element (in this HTML version)
# Line 173, character 152:

... op: 1px; padding-bottom: 1px"><p class="centered"><em>WSAA N ...
^

Error: element MARQUEE not defined in this HTML version
# Line 177, character 75:

... .jpg" width="100" height="50"></a><p class="centered">
^

[edited by: encyclo at 8:13 pm (utc) on May 14, 2006]
[edit reason] no personal URLs please, see forum charter [/edit]

Little_G

7:42 pm on May 14, 2006 (gmt 0)

10+ Year Member



Hi,

The marquee element is not part of the HTML specification, so with the marquee element your document will never validate.
You can use JavaScript instead to achieve the same effect.

Andrew

bigfatarthur

9:39 pm on May 14, 2006 (gmt 0)

10+ Year Member



Thanks andrew. It looks like it will have to go then. Ill look around to learn the javascript.