HTML - blink Tag



HTML <blink> tag is used to create slowly blinkink text. This tag was supported by Netscape and now this is obsolete.

This tag was deprecated in HTML 4.0 and is not supported by the modern browsers. Instead you can use the CSS or JavaScript to achieve the similar effect.

Syntax

<blink>...</blink>

Attribute

HTML frameset tag supports Global attributes of HTML.

Example of HTML blink Tag

Create blink Text using blink Tag

Consider the following example, where we are going to use the blink tag in the HTML document.

<!DOCTYPE html>
<html>

   <head>
      <title>HTML blink Tag</title>
   </head>

   <body>
      <blink>This text will blink in Netscape Version 5.0</blink>
   </body>

</html>

Using JavaScript to create blinkink Text

In the following examples we create a blinking text using JavaScript, which will blink in a frquecy of half seconds.

<!DOCTYPE html>
<html>

<head>
    <title>HTML blink Tag</title>
</head>

<body>
    <p>
      This text will <span id="blink">blink</span> 
      in Netscape Version 5.0</p>
    <script type="text/javascript">
        var blink = document.getElementById('blink');
        setInterval(function() {
            blink.style.opacity = (blink.style.opacity == 0 ? 1 : 0);
        }, 500);
    </script>
</body>

</html>

Supported Browsers

Tag Chrome Edge Firefox Safari Opera
blink Yes Yes Yes Yes Yes
html_deprecated_tags.htm
Advertisements