Features

Make sure <blink> elements are not used

Rule ID: blink User Impact: serious Guidelines: WCAG 2.0

The <blink> HTML element is deprecated and should not be used in modern web development due to accessibility concerns and lack of support in contemporary browsers.

Why It Matters

Blinking text can be distracting and may cause difficulties for users with cognitive disabilities. Additionally, it can be challenging for individuals with visual impairments to read blinking content. The <blink> element is not supported in most modern browsers, rendering it ineffective and potentially confusing.

How to Fix

Remove all instances of the <blink> element from your HTML code, as well as text-decoration: blink from your CSS file(s):

Copy code
<!-- Remove this code -->
<p><blink>Important Announcement!</blink></p>

If you wish to emphasize text, consider using CSS properties such as font-weight, color, or background-color to achieve the desired effect without causing accessibility issues.

Example

Incorrect

Using the deprecated <blink> element:

Copy code
<p><blink>Sale Ends Tomorrow!</blink></p>

Correct

Emphasizing text using CSS, without using text-decoration: blink.

Copy code
<p style="font-weight: bold; color: red;">Sale Ends Tomorrow!</p>

About This Rule

This rule ensures that the <blink> element is not used in HTML documents, promoting better accessibility and compatibility across web browsers.

Other Rules

Interested in other web accessibility rules? Please see these other rules: