# Marquee

> The <marquee> element must not be used. Its text scrolls continuously, and users can't pause, stop, or hide the motion.

Source: https://knowledge.evinced.com/web/web-validations/marquee

`<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

-   [SCR33: Using script to scroll content, and providing a mechanism to pause it](https://www.w3.org/WAI/WCAG22/Techniques/client-side-script/SCR33)
-   [G4: Allowing the content to be paused and restarted from where it was paused](https://www.w3.org/WAI/WCAG22/Techniques/general/G4)
-   [G186: Using a control in the web page that stops moving, blinking, or auto-updating content](https://www.w3.org/WAI/WCAG22/Techniques/general/G186)

### Failure techniques

-   [F16: Failure of Success Criterion 2.2.2 due to including scrolling content where movement is not essential to the activity without also including a mechanism to pause and restart the content](https://www.w3.org/WAI/WCAG22/Techniques/failures/F16)

## ACT Rules

-   [Text content that changes automatically can be paused, stopped or hidden](https://www.w3.org/WAI/standards-guidelines/act/rules/efbfc7/)

## 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

| Standard | Success Criterion | Reference |
| --- | --- | --- |
| WCAG 2.2 | [2.2.2 Pause, Stop, Hide](https://www.w3.org/TR/WCAG22/#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 549 | [9.2.2.2 Pause, Stop, Hide](https://www.etsi.org/standards/etsi-301-549) | Same as the WCAG text. |
| 508 Trusted Tester | [2.2.2-blinking-moving-scrolling, 2.B](https://section508coordinators.github.io/TrustedTester/auto.html#check-222-blinking-moving-scrolling) | The user can pause, stop, or hide moving, blinking, or scrolling content. |

## Personas impacted by this issue

-   [Cognitive](https://knowledge.evinced.com/a11y-essentials/personas#cognitive)
-   [Attention and Focus](https://knowledge.evinced.com/a11y-essentials/personas#attention-and-focus)
-   [Motor and Mobility](https://knowledge.evinced.com/a11y-essentials/personas#motor-and-mobility)
-   [Screen Reader](https://knowledge.evinced.com/a11y-essentials/personas#screen-reader)
-   [Seizures and Physical Reactions](https://knowledge.evinced.com/a11y-essentials/personas#seizures-and-physical-reactions)

## Related Issues

-   [blink](https://knowledge.evinced.com/web/web-validations/blink)
-   [meta-refresh](https://knowledge.evinced.com/web/web-validations/meta-refresh)
