1

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...

cdeszaq
  • 30,869
  • 25
  • 117
  • 173
VLADCHOOO
  • 15
  • 3

3 Answers3

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

Community
  • 1
  • 1
Kyle
  • 3,170
  • 1
  • 17
  • 20
  • 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
0

<marquee> is not a valid HTML tag. It won't validate.

cdeszaq
  • 30,869
  • 25
  • 117
  • 173