Is there a way to validate the tag? And I have two elements with OnMouseOver attribute, and the validator, too don't validate them. The only errors are these. So if you know a way, please share...
Asked
Active
Viewed 1,609 times
1
-
Or if you know a javascript, that is like the marquee... – VLADCHOOO Sep 29 '11 at 18:45
3 Answers
2
There is no way to validate the <marquee>
tag since it is not a standard html element. You will have to use JavaScript. Here is another SO question that might lead you in the right direction. Javascript Marquee to replace tags
-
There are several links in the question I posted that can help you. One of them you can try is http://remysharp.com/2008/09/10/the-silky-smooth-marquee/ . It's a JQuery plugin that should be pretty simple to setup. – Kyle Sep 29 '11 at 18:55
1
<marquee>
? Are you travelling in time and came from late 90's?
OK, jokes aside. <marquee>
is not a standard HTML attribute, it was introduced by Microsoft and was never really adopted. Hence the HTML validator will obviously scream.
Technically you can use tricks like generating this tag dynamically via JavaScript. There is also much better, portable and widely accepted workaround - don't use it. It looks terrible.

Tomasz Nurkiewicz
- 334,321
- 69
- 703
- 674