Skip to content

Blinking text needs a way to stop

  • Rule: axe/blink
  • Checks: <blink> elements are deprecated and must not be used
  • WCAG: 2.2.2
  • Fix class: mechanical: A fix needs no authored text or visual decision.
  • People whom moving, blinking or flashing content distracts, disorients or harms.
  • People with cognitive, learning or attention disabilities.

Replace it with static emphasis: <strong> for importance, or a class that styles the text. <blink> is obsolete and gives people no built-in way to stop it.

<p><strong>Sale ends Friday.</strong></p>

Use color, weight, an icon or placement rather than motion. If it must animate, never let it flash more than three times a second, stop it within five seconds or give people a visible control that pauses it, and keep it still under prefers-reduced-motion: reduce.

Section titled “Recreating the blink with a CSS animation or script that never stops”

The rule passes because the element is gone, but text that blinks for more than five seconds with no way to pause, stop or hide it still fails WCAG 2.2.2.

axe-core’s documentation of the rule

CORA’s fix guidance adapts content from accessibility-agents, under the MIT License: see its notice.