# Blink

> The <blink> element must not be used. Blinking text distracts readers, makes content harder to read, and can't be paused or stopped by users.

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

`<blink>` elements must not be used.

Blinking content distracts readers, reduces comprehension, and rapid flashing can trigger photosensitive seizures. Modern browsers no longer support the `blink` tag, but legacy code may still include it. Remove the effect, or make sure any blinking lasts fewer than five seconds. This keeps information readable and safe for everyone.

## Pass Patterns

### Emphasizing text with styling

CSS weight and color draw attention without any motion.

```html
<p class="alert-text">Limited-time offer</p>


<style>
    .alert-text {
        font-weight: 700;
        color: #c00;
    }
</style>
```

### A blink that stops within five seconds

A CSS animation blinks the text a few times, then stops on its own.

```html
<style>
    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }
    .notice {
        animation: blink 1s linear 4;
    }
</style>
<p class="notice">New message</p>
```

## Fail Patterns

### Using the blink element

The `<blink>` element is obsolete. Browsers that still support it blink the text indefinitely with no way to stop it, so it must be removed.

```html
<blink>Sale ends soon!</blink>
```

## WCAG techniques

### Sufficient techniques

-   [G11: Creating content that blinks for less than 5 seconds](https://www.w3.org/WAI/WCAG22/Techniques/general/G11)
-   [SCR22: Using scripts to control blinking and stop it in five seconds or less](https://www.w3.org/WAI/WCAG22/Techniques/client-side-script/SCR22)
-   [G152: Setting animated gif images to stop blinking after n cycles (within 5 seconds)](https://www.w3.org/WAI/WCAG22/Techniques/general/G152)
-   [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)
-   [G191: Providing a link, button, or other mechanism that reloads the page without any blinking content](https://www.w3.org/WAI/WCAG22/Techniques/general/G191)

### Failure techniques

-   [F112: Failure of Success Criterion 2.2.2 due to using blinking content that lasts for more than five seconds without a mechanism to stop it](https://www.w3.org/WAI/WCAG22/Techniques/failures/F112)
-   [F50: Failure of Success Criterion 2.2.2 due to a script that causes a blink effect without a mechanism to stop the blinking at 5 seconds or less](https://www.w3.org/WAI/WCAG22/Techniques/failures/F50)

## 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 in a desktop browser.
2.  Search the DOM for `<blink>` elements or content that blinks.
3.  Watch any blinking content for more than five seconds.

**Expected results:** No content blinks for more than five seconds, or a mechanism lets you stop it.

**Actual results:** Blinking content continues past 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 any blinking content that starts automatically and lasts more than five seconds. An uncontrolled `blink` effect fails this because it continues indefinitely and gives users no way to stop it.

**Why is this issue marked as Serious?**

Continuous blinking can cause headaches and impede reading. It also disrupts assistive technology output and makes it hard for everyone to concentrate on the page content.

## 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. |
| Section 508 | [1194.22(j)](https://www.federalregister.gov/documents/2018/01/18/2018-00712/section-508-standards-update#d22) | Pages shall be designed to avoid causing the screen to flicker with a frequency greater than 2 Hz and lower than 55 Hz. |
| 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)
-   [Low Vision](https://knowledge.evinced.com/a11y-essentials/personas#low-vision)
-   [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)
