Another deprecated element that made text blink. Similarly problematic for accessibility. Learn more →
<marquee> ElementThe <marquee> element was a proprietary HTML element introduced by Microsoft Internet Explorer 2.0 in 1995. It created scrolling or bouncing text and images without requiring any scripting. While it became widely supported due to IE’s dominance, it was never standardized and is now considered obsolete.
The element was designed to add visual interest to web pages by animating content horizontally or vertically across the screen. Despite its popularity in the early web era (late 1990s to early 2000s), it suffered from numerous problems that led to its deprecation.
These attributes controlled the marquee’s behavior. They are documented here for historical reference only.
| Attribute | Description | Values | Default |
|---|---|---|---|
behavior | Type of scrolling | scroll, slide, alternate | scroll |
direction | Direction of movement | left, right, up, down | left |
scrollamount | Speed in pixels per interval | Number (pixels) | 6 |
scrolldelay | Milliseconds between movements | Number (ms) | 85 |
loop | Number of times to scroll | Number or infinite | infinite |
| Attribute | Description | Values |
|---|---|---|
bgcolor | Background color | Color name or hex code |
width | Width of marquee area | Pixels or percentage |
height | Height of marquee area | Pixels or percentage |
hspace | Horizontal margin | Number (pixels) |
vspace | Vertical margin | Number (pixels) |
scroll: Content scrolls completely across and starts over from the opposite side.
slide: Content scrolls in from one side and stops when it reaches the other.
alternate: Content bounces back and forth between the edges.
The <marquee> element was deprecated for several critical reasons:
Screen Reader Issues: Moving content is difficult or impossible for screen reader users to consume. The text moves too quickly to be read by assistive technologies, or continuously interrupts the reading flow.
Cognitive Disabilities: People with cognitive disabilities, attention disorders, or reading difficulties cannot control the pace of information, making content effectively inaccessible.
Motion Sensitivity: Automatically moving content can trigger vestibular disorders, cause nausea, headaches, or seizures in susceptible individuals.
Distraction: Moving text draws attention away from other content, reducing comprehension and frustrating users trying to focus on static content.
Readability: Text in motion is significantly harder to read than static text, especially at higher speeds.
No User Control: Users cannot pause, slow down, or stop the animation, violating user preference and control principles.
Never Standardized: It was a proprietary Microsoft invention that never became part of any W3C or WHATWG standard.
Inconsistent Implementation: Different browsers implemented it differently, causing cross-browser compatibility issues.
Poor Semantics: It mixed presentation with content, violating the separation of concerns principle.
Use CSS animations or transitions to create controlled, accessible motion when absolutely necessary.
Automatically moving content violates multiple Web Content Accessibility Guidelines (WCAG):
2.2.2 Pause, Stop, Hide (Level A): For any moving, blinking, or scrolling information that starts automatically, lasts more than 5 seconds, and is presented in parallel with other content, users must have a mechanism to pause, stop, or hide it.
2.3.1 Three Flashes or Below Threshold (Level A): Rapid movement can trigger seizures in susceptible individuals.
2.3.3 Animation from Interactions (Level AAA): Motion animation should only be triggered by user interaction unless it’s essential.
When you must use animations:
prefers-reduced-motion media query| Browser | Support Period | Notes |
|---|---|---|
| IE | 2.0 - 11 | Original implementation (1995) |
| Chrome | 1+ | Legacy support, may be removed |
| Firefox | 1+ | Legacy support, deprecated |
| Safari | 1.2+ | Legacy support |
| Edge | 12-18 (Legacy) | Not supported in Chromium Edge |
| Opera | 7+ | Legacy support |
Never Standardized: The <marquee> element was never included in any W3C HTML specification or WHATWG HTML Living Standard.
Proprietary Origin: Created by Microsoft for Internet Explorer 2.0.
Reverse-Engineered: Other browsers implemented it only to maintain compatibility with IE-centric websites.
Officially Deprecated: Marked as obsolete and non-conforming in modern HTML.
Another deprecated element that made text blink. Similarly problematic for accessibility. Learn more →
CSS Animations
Modern, accessible way to create animated effects with user control. Learn more →
CSS Transitions
Smooth state changes triggered by user interactions. Learn more →
prefers-reduced-motion
CSS media query to respect user motion preferences. Learn more →
The <marquee> element was never part of any official specification:
No W3C Standard: Never included in HTML 4.01, XHTML, or earlier standards.
No WHATWG Standard: Not part of the HTML Living Standard.
HTML5 Status: Explicitly listed as obsolete and non-conforming in HTML5.