Skip to main content
🎉 A11y Issue Detection Agent is now live! Detect accessibility issues like a WCAG expert with AI. Try now!
No Result Found
Connect and get help from 7,000+ developers on our Discord community. Ask the CommunityAsk the Community

marquee

Severity: Serious

Description

The <marquee> element must not be used. It creates text or content that scrolls automatically across the screen with no built-in way for users to pause or stop the movement. This is a problem for users with cognitive disabilities who need more time to read content, for users with vestibular disorders who are affected by moving content, and for users who rely on screen readers which may not handle moving content predictably. The <marquee> element is also deprecated in HTML5.

Example

In the following example, a <marquee> element is used to display a scrolling announcement. Users cannot pause the movement, which makes the content inaccessible. This breaks the marquee rule.

Incorrect sample - scrolling marquee element
Copy icon Copy

In contrast, the following code snippet displays the same announcement as static text. All users can read it at their own pace, and the code does not break the marquee rule.

Correct sample - static announcement text
Copy icon Copy

How to fix?

Check if your site uses <marquee> elements. If so:

  • Replace the <marquee> element with static text or a standard HTML element such as <p>, <div>, or <span>. This is the recommended solution.
  • If animated or moving content is essential, implement it using CSS animations or JavaScript and provide a visible pause or stop control so users can halt the movement.

Reference

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle