The Marquee tag: Does it still work?

If this is scrolling, the marquee tag still works on your browser

<marquee>If this is scrolling, the marquee tag still works on your browser</marquee>

Deprecated as long as I can remember[1], I never had a chance to use it. While convenient, because you don't need to do any CSS or javascript if that is the effect you want, it hurts the separation of concerns concept[2].

This, on the other hand, is an implementation of the Marquee tag in Vue(based on this example[3]):

Will this last longer than the original tag? Only time will tell

<Marquee2 :txt="'Will this last longer than the original tag? Only time will tell'"/>

I have to say that, beyond any sort of consistency regarding the structure of web pages, the marquee just isn't that useful. It grabs your attention only because it's harder to read.

I can only think about two applications of this function:

  • Text-based pong using HTML, CSS, and minimal javascript (fun, but not useful, and a bit of a kludge);
  • A teleprompter-style interface (that can be useful).

Still, if you only want to do weird stuff, you can do this:

# References

[1] The Marquee element (opens new window)

[2] Separation of concerns (opens new window)

[3] Example of implementing marquee via CSS (opens new window)