Marquee Tag Found To Create Scrolling Text
| Field | Value |
|---|---|
| Rule code | BadTag_Marquee_Detect |
| WCAG conformance level | A |
| WCAG success criterion | 2.2.2 Pause, Stop, Hide |
| Must be fixed at source | Yes |
Description
A Marquee tag was found. Avoid using the marquee tag as it is deprecated and update existing code if possible. If the purpose of the marquee is to emphasise some text, use the em HTML tag or apply CSS styling instead. If the purpose of the marquee tag is presentational, add scripting to make the text move instead and ensure a control is provided for the text scrolling to be stopped by users.
How to fix
Examine any instances where <marquee> tags are used for creating scrolling text on the webpage. Replace each <marquee> element with standard HTML and CSS to achieve a similar effect. For example, use CSS animations for moving text.