×

HTML <blink> Tag

In HTML, the blink tag is used to create the text which flashes. The blink tag is an inline element in HTML. It is observed that the blink tag used in HTML is not supported in all browsers. And also, this tag is not under the Hypertext Markup Language. We may create this blinking effect by combining CSS and JavaScript with HTML. But in the Internet usage guideline policy, it is strictly advised not to use the blinking text because it may impact the disabled user. It is so annoying that the text blinks on or off, which may annoy the user. Note that this tag is no longer used and is not supported by many browsers. Using the blink tag is not advised because some browsers may not break the code.

Example 1

This example may not work because it is written only with the help of HTML. Some browers may not be compatible with it.

HTML code

<!DOCTYPE html>
<html>


<head>
	<title>
Blinking text using HTML
	</title>
</head>


<body>
	<h1>javaTpoint</h1>


	<blink>
Blink tag does not work
in HTML
	</blink>
</body>


</html>

Note- The <blink> tag is no more supported and does not work in any of the new browser versions. A combination of CSS and JavaScript must be used instead to attain this effect.

Output:

HTML <blink> Tag

Example 2

In this example, we are using JavaScript with HTML to blink the text.

HTML code

<!DOCTYPE html>
<html>


<head>
<title>
Blinking with JavaScript
</title>


<style>
#blink {
font-size: 20px;
font-weight: bold;
font-family: sans-serif;
}
</style>
</head>


<body>
<p id="blink">
Hello users, Welcome to javaTpoint, let's Blink
</p>


<script type="text/javascript">
var blink =
document.getElementById('blink');


setInterval(function () {
blink.style.opacity =
(blink.style.opacity == 0 ? 1 : 0);
}, 1000);
</script>
</body>


</html>

Output:

HTML <blink> Tag

Example 3

<!DOCTYPE html>
<html>
<head>
<title>Blinking feature using CSS</title>
<style>
.blink {
animation: blinker 1.5s linear infinite;
color: red;
font-family: sans-serif;
}
@keyframes blinker {
50% {
opacity: 0;
}
}
</style>
</head>
<body>
<p class="blink"> Welcome to javaTpoint. </p>
</body>
</html>

Output:

HTML <blink> Tag

Browser compatibility

1. Chrome: Not supported.

2. Mozilla Firefox: Not supported.

3. Safari: Not supported.

4. Opera: Not supported.

5. Internet Explorer: Not supported.


Related Topics

HTML <script> Tag

For embedding a client -side script, we use script tag in html tag. This <script> tag can be used for containing scripting statements. It can also point another external script file...

2 minutes read.

HTML5 Tags

HTML5 Tags A list of newly included tags is provided in HTML5. These HTML 5 tags (elements) provide a better structure for the document. This list shows description of all HTML...

3 minutes read.

HTML <section> tag

The section element in HTML is used to define sections in a document. Syntax of Section Tag: <body> <h1>……….</h1> <section> <h2>……….</h2> <p> …………………………</p> </section> <section> <h2>………..</h2> <p>…………………………. <p> </section> </body> Examples of Section Tag Example 1: In this example, we use the HTML "section" element...

3 minutes read.

HTML <samp> tag

The Samp tag in HTML is used for defining the sample output from the computer program. This tag is a phrase type tag and a container tag that means the...

2 minutes read.

How to Create a Portfolio Gallery using HTML and CSS?

First, before starting this, the user should know some of the basics of HTML and CSS to create a portfolio gallery. To add more functionality to the website, we can also...

7 minutes read.

HTML Anchor

HTML Anchor The HTML anchor tags define a hyperlink that links to other pages on one page. It can create hyperlinks to any web page and files, locations or any other...

3 minutes read.

HTML <select> tag

This tag helps in making the drop-down list on the web page. This is highly used in HTML forms for taking the input from user. You can use the id attribute...

3 minutes read.

HTML <video> Tag

The Video tag in HTML is used to play video on a media player on the web page. We can also insert an audio by the video tag, but audio...

6 minutes read.

HTML Nested Table

HTML nested table refers to a table that is created inside another table. The table is in the form of rows and columns. From left to right are called horizontal rows,...

5 minutes read.

HTML <summary> tag

When we simply want to show the primary heading or topic name of hidden detailed material to users, then we can achieved this by using the summary tag. This makes it...

2 minutes read.

Div Tag in HTML

In HTML, ‘div’ is a tag that specifies division or section in HTML document. But before going in detail of it, let’s first understand about tags in HTML. The tag...

8 minutes read.

Html Wbr Tag

The Line Break Opportunity element A word break opportunity is a place in text from where the browser breaks a line. This opportunity is represented by the element wbr in the...

2 minutes read.

How to add Google Translate Button on your Webpage?

Google translator is a multi-language translator used for translating the webpage. Google develops it. In today's digital age, it is essential because information is available worldwide in some specific language...

5 minutes read.

HTML <sup> Tag

The HTML sup element is used to describe one or more superscript contents. The sup tag shows a text which is presented above the regular line and half the length...

2 minutes read.

HTML Charsets

In this tutorial, we are going to discuss about the charsets in the HTML. The letters, numbers, and several other symbols are shown correctly by the web browser. All of this...

2 minutes read.

HTML <u> tag

Underline Element/Tag: The u tag in html is used to specify the important text or phrase by underline. In earlier HTML versions, this element was known as the "Underline" element, and...

5 minutes read.

HTML5 Button Tag

HTML Button Tag The < button > tag is used on the webpage to construct a clickable button inside the HTML. Within the < button>....</button > tag, we can place content...

2 minutes read.

Font tag in HTML

HTML stands for Hypertext Mark-up Language and is used to create web pages and other information that can be later displayed in a web browser. It also consists of a...

4 minutes read.

HTML Form Input Types

HTML Form Input Types An important element of the HTML form is < input type= "> in HTML. The type attribute of the input element can be of different types, which...

8 minutes read.

HTML Event Attributes

HTML Event Attributes If a browser responds to the user behavior, an event is called. For example, if we click on the submit button, a box of details will appear on...

4 minutes read.