On this page
<marquee>
Prev: `<canvas>` | Up: media | Next: interactive
Rel: CSS @keyframes, media, Tables & Media Guide
Ref: MDN Web Docs — <marquee>
Tags: #public #web #html #elements #media #tier/legacy
Summary
Obsolete scrolling text element that harms readability and accessibility.
Legacy / Avoid: Prefer CSS @keyframes in all new markup.
- Implicit ARIA Role:
marquee - DOM Interface:
HTMLMarqueeElement - Key Attributes:
—
Notes & Best Practices
- Obsolete & deprecated: Causes accessibility/motion issues—never use
<marquee>; use CSS@keyframesgated behindprefers-reduced-motion: no-preference.
Example
<!-- Do not use <marquee>; use a CSS-animated container respecting prefers-reduced-motion -->
<div class="ticker" role="region" aria-label="Updates">Latest release v2.0</div>
Linked from
Related notes
- tuts/html/elements/media/canvas Linked here; links to this page; shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media Linked here; links to this page; shared tags: #elements, #html, #media, #web
- tuts/html/elements/tables_and_media Linked here; shared tags: #elements, #html, #media, #web
- tuts/html/elements/interactive Linked here; shared tags: #elements, #html, #web
- tuts/css/at_rules/keyframes_and_fonts Linked here; shared tags: #web
- tuts/html/elements/media/figure shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/img shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/picture shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/svg shared tags: #elements, #html, #media, #tier, #web
- tuts/html/elements/media/table shared tags: #elements, #html, #media, #tier, #web