Skip to main content
Version: v6

Marquee Tag Found To Create Scrolling Text

Marquee Tag Found To Create Scrolling Text — rule summary
FieldValue
Rule codeBadTag_Marquee_Detect
WCAG conformance levelA
WCAG success criterion2.2.2 Pause, Stop, Hide
Must be fixed at sourceYes

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.