HTML Reference ยท Obsolete Elements
The <marquee> element (obsolete)
The HTML <marquee> element scrolled text across the screen and is obsolete. Learn why it hurts accessibility and how to build a controllable CSS alternative.
The <marquee> element scrolled or bounced its content across the screen automatically. Attributes controlled the motion: direction (left, right, up, down), behavior (scroll, slide, alternate), scrollamount, scrolldelay and loop.
Why it's obsolete
<marquee> began as a browser-specific invention and was never part of a formal HTML standard before HTML5, which lists it as obsolete. Motion is a styling concern, and constantly moving text is hard to read, distracts people with attention difficulties, can trigger discomfort for people with vestibular disorders, and offers no built-in way to pause.
Browsers still render it for compatibility, and the standard even defines its HTMLMarqueeElement interface, but you should not use it.
Modern replacement
First ask whether the text needs to move at all; a static banner is usually clearer. If motion is truly wanted, use a CSS animation that the user controls and that stays still for people who prefer reduced motion.
Accessibility guidelines (WCAG "Pause, Stop, Hide") require a way to pause automatic motion that lasts more than five seconds, so never ship moving text without a control.
Technical summary
| Status | Obsolete (non-conforming) |
| Replacement | Static text, or a CSS animation with a pause control and prefers-reduced-motion |
| Still rendered by browsers | Yes, including its scrolling behavior |
Related
<p>โ a plain paragraph is usually the better choice<style>โ where the CSS animation lives- Lesson: Deprecated and Obsolete Features
- Lesson: Accessibility Basics