Search code examples
htmlw3c-validationmarquee

html 5 marquee tag error in w3c validation


I have some text in marquee tag.

<marquee direction="left" scrollamount="4">
 Test Test Test Test Test
</marquee>

I am using html 5 and css 3. When i check my html in w3c validator, it shows the following error.

 Element marquee not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

        <marquee direction="left" scrollamount="4"> 

How to fix this?


Solution

  • Marquee tag is not html5 (is not html at all, but Microsoft proprietary tag from 1995)

    you can :

    Beware of the W3C validator: it doesn't always know all the W3C specifications!