We'd like to set Google Analytics cookies to learn how people use the Knowledge Base, so we can improve it. We set them only if you accept.

Skip to main content
Digital Accessibility Knowledge Base

marquee

Web validation

<marquee> elements must not be used.

The <marquee> element creates automatically scrolling text. Users cannot pause, stop, or hide the motion, and it keeps moving for as long as the content is on screen. Continuous movement distracts people with attention-related or cognitive disabilities. Moving links are hard to select for people with limited motor control, and screen reader users may struggle to track content that keeps changing position.

Pass Patterns

Static text with no movement

The message stays in place, so it needs no pause, stop, or hide control.

HTML
<p class="announcement">
    Early-bird registration closes Friday.
</p>

Live region that updates without scrolling

aria-live="polite" announces updates while the text stays still, avoiding distraction.

HTML
<div aria-live="polite">
    New status: Backup completed successfully.
</div>

Fail Patterns

Scrolling text that never stops

The <marquee> scrolls continuously with no built-in control, so users cannot pause or stop it.

HTML
<marquee behavior="scroll" direction="left">
    Flash sale: 50% off today only!
</marquee>

WCAG techniques

Sufficient techniques

Failure techniques

ACT Rules

Try It Yourself

Inspecting the browser dev-tools

  1. Open the page and open your browser's dev tools.
  2. Search the Elements panel for <marquee>.
  3. Check whether any <marquee> element is present.

Expected results: No <marquee> element appears on the page.

Actual results: Any <marquee> element is a violation.

Watching the page

  1. Load the page and watch any moving text.
  2. Look for a control to pause, stop, or hide it.
  3. Time how long the movement lasts.

Expected results: Moving content stops within five seconds or offers a control to pause it.

Actual results: The content scrolls for more than five seconds with no way to stop it.

FAQ

How does this issue relate to 2.2.2 Pause, Stop, Hide?

SC 2.2.2 requires a way to pause, stop, or hide moving or scrolling content that lasts more than five seconds. The <marquee> element has no native control, so its scrolling content cannot meet this requirement.

Why is this issue marked as Serious?

Uncontrolled motion can pull attention away from other tasks, frustrate people who use assistive technology, and stop some users from reading or activating links inside the moving text. These barriers affect core comprehension and operability across browsers and devices, so the severity is serious.

Standards and Regulations

StandardSuccess CriterionReference
WCAG 2.22.2.2 Pause, Stop, Hide (A)For moving, blinking, scrolling, or auto-updating information, a mechanism exists to pause, stop, or hide it, with specific exceptions for essential activity and time-based media.
EN 301 5499.2.2.2 Pause, Stop, HideSame as the WCAG text.
508 Trusted Tester2.2.2-blinking-moving-scrolling, 2.BThe user can pause, stop, or hide moving, blinking, or scrolling content.

Personas impacted by this issue