Do not use the <marquee> element

The obsolete marquee element scrolls text endlessly with no way to pause it. Replace it with static content, or with an animation visitors can stop.

Rule IDmarquee
ImpactSerious
Success criterion 2.2.2 Pause, Stop, Hide · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed automatically

Example

Before
<marquee>Spring sale: 20% off all garden furniture until Sunday!</marquee>

The offer slides past constantly; slow readers and people with attention disorders cannot read or ignore it.

After
<p class="banner">Spring sale: 20% off all garden furniture until Sunday!</p>

The offer stays still: everyone can read it at their own pace.

Why it matters

Moving text is hard to read for people with low vision, dyslexia or reading difficulties: by the time they find the start of a sentence, it has moved on. People with ADHD or other attention disorders find constant motion distracting, and it pulls them away from the rest of the page. Screen magnifier users see only a small part of the screen and may never catch the full message.

WCAG 2.2.2 requires that anything moving for more than five seconds, next to other content, can be paused, stopped or hidden. The <marquee> element has no such control. It is also obsolete in HTML, so its behavior can change between browsers.

How to fix it

Make it static. In most cases, a short announcement does not need to move at all:

<p class="banner"><strong>Spring sale:</strong> 20% off garden furniture until Sunday.</p>

Several messages. Show them as a list, or rotate them with a clear pause button:

<div class="ticker">
  <button type="button" aria-pressed="false" id="ticker-pause">Pause</button>
  <p class="ticker-text">Free returns · Next-day delivery · Spring sale</p>
</div>

When the button is pressed, stop the CSS animation (animation-play-state: paused) and set aria-pressed="true".

Respect motion settings. Turn the animation off for people who asked their system to reduce motion:

<style>
  @media (prefers-reduced-motion: reduce) {
    .ticker-text { animation: none; }
  }
</style>

Stop on its own. A movement that ends within five seconds needs no control.

Search your templates and your content editor's HTML for <marquee too: it often comes from pasted legacy content.

Checklist

  1. Remove every <marquee> element.
  2. Prefer static text for announcements.
  3. Add a pause button to any animation longer than 5 seconds.
  4. Turn off motion under prefers-reduced-motion.

How the check works

The check fails for every <marquee> element on the page, whatever its attributes. It does not test CSS or JavaScript animations, carousels or tickers built in other ways: check those manually and make sure anything that moves for more than five seconds can be paused.

Resources

Updated October 27, 2026