- Home
- /
- Tutorials
- /
- HTML Tutorial
- /
- HTML <blink> Tag
HTML Tags
HTML <blink> Tag
The blink tag made text flash on and off in 1990s browsers. No current browser supports it, and if you need the effect today, CSS can do it more safely.
What the blink tag was
<blink> was added by Netscape Navigator in the mid-1990s to make text flash. Most other browsers ignored it, and readers quickly found it annoying. Today it is obsolete.
Syntax
html
<blink>Your text goes here</blink>There are no special attributes. Only the global attributes such as class and id apply, the same as for any unknown element.
Example
html
<!DOCTYPE html>
<html>
<head>
<title>Example of blink Tag</title>
</head>
<body>
<h2>Blink Tag Example</h2>
<p>This is a normal text.</p>
<blink style="color:red; font-weight:bold;">
This text used to blink in old browsers!
</blink>
</body>
</html>In any current browser, the text inside <blink> appears as ordinary, still text.
Does the Blink Tag Still Work?
No. Current versions of Chrome, Firefox, Safari and Edge show the text inside <blink> without blinking. The tag was never part of an HTML standard.
How to Make Blinking Text with CSS
Use a CSS animation instead. This one fades slowly, stops after five cycles, and does not run for people who asked their device to reduce motion.
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Example</title>
<style>
.blink { animation: blink 1.5s ease-in-out 5; }
@keyframes blink {
50% { opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
.blink { animation: none; }
}
</style>
</head>
<body>
<p class="blink">Sale ends today</p>
</body>
</html>Keep blinking text safe
- Do not flash anything more than three times in one second. Fast flashing can trigger seizures.
- Blinking that starts by itself and lasts more than five seconds needs a way to pause or stop it.
- Do not rely on blinking alone to show something important. Use clear words as well.
Learn more in CSS Animations, or see another obsolete effect in HTML marquee tag.
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
|---|---|---|---|---|
| No | No | No | No | No |
Firefox dropped blinking in version 23 and Opera in version 15. Chrome and Safari never made text blink.
Remember
- Do not use
<blink>in new pages. The text just shows up still. - If you want attention, a clear heading or a colored notice box usually works better than motion.
- If you do animate text, keep it slow, stop it after a few cycles, and respect reduced-motion settings, as the CSS example above does.
HTML <blink> Tag exercises
Use a still notice
The blink element is gone. Write a paragraph with the class notice that says Offer ends today.
Result
