Search code examples
htmlintellij-ideaw3c

HTML | What is <marquee> and what can i do with it?


I just found out that there is a html tag called <marquee>. I went to several websites including the w3schools and the selfHTML website but couldnt find anything about this tag. IntelliJ wich I'm using to write my websites, doesnot recognise this tag. It says: Unkown html tag marquee. This tag is how I tested compatible with all browsers(even in IE!).

So now I have the following Questions:

  • What atributes can I use for this tag?

  • Why isnt this tag on the html-turtorial sites?

  • If its not in the W3Schools -> who created this tag?

Just that you know what I'm all talking about:

<marquee>Test Marquee</marquee>
<p>Test Paragraph</p>

Thanks for answering


Solution

  • <marquee> is an old HTML element that causes whatever content inside of it to scroll across the viewport from right to left by default.

    It may still work in some browsers for backwards compatibility, but it is no longer officially supported in HTML and should be avoided. That's why you are not finding it on tutorial sites. And since it is no longer supported, there is no guarantee that even if it works in some browsers today, it will continue to work in new versions of those browsers tomorrow.

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee