×

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 <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.

HTML Code

Before jumping into the topic, let’s understand a common scenario where we have a code snippet in our HTML file. By code snippet, we mean computer code, which is written...

5 minutes read.

What does HTML stand for?

HTML stands for Hyper Text Markup Language. We use this markup language to design a web page. Web browsers use this language to showcase text, videos, images, audio and other...

6 minutes read.

HTML Youtube

<object> element: It embed the object within the HTML documents and embed plug-ins such as Java applets, PDF readers, Flash Players etc in web pages. Example: <object width="100" height="100" data="bookmark.swf"></object> <embed> element: It defines an embedded...

1 minute read.

HTML Headings

The titles and subtitles of our webpages are known as HTML headings. Let’s not talk about webpages but giving heading to almost everything like normal paragraphs, articles or let it...

2 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.

HTML Audio

HTML AUDIO: HTML5 provides a method to embed the audio file into a webpage by using HTML5. Before HTML5 audio files is used to play on the browser with the help of...

1 minute read.

HTML Reset Button

The HTML reset button is used to reset all values in the form. It clears all input fields. Reset is the value of the type attribute of the button element. The...

6 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.

HTML <style> tag

The section of information that we want to style is contained in html style tag. It includes CSS, which is used to design the text and images in the web page. Syntax: <head> <title>…………....

3 minutes read.

Most Commonly used Tags in HTML

In this tutorial, we'll look at the most popular HTML tags. We know HTML is a fundamental requirement for creating a website. As a result, it is essential to remember...

9 minutes read.

HTML Paragraphs

In html, there are some elements which starts with new line and one of them is paragraph. Which is said to be a block of text. In html <p> tag...

4 minutes read.

HTML Lists

HTML List HTML lists are used to specify data sets. All lists can include one or more elements from the list. HTML lists are available in three different types: Ordered List or...

4 minutes read.

Html &lt;center> Tag

The term HTML refers to Hyper Text Markup Language. The most widely used markup language for making web pages is HTML. A structure of web page is described in HTML....

3 minutes read.

HTML5 Attribute

HTML Attribute HTML attributes are special words that provide additional information about the HTML element or attributes.The element or tags have attributes, which define the element's behavior.It also adds attributes with a start...

3 minutes read.

HTML Font Color

The HTML <font> tag has an attribute called color, which defines the color of the text. We use the color attribute inside the <font> tag to specify the color of...

6 minutes read.

How to insert image in HTML

An image (technically digital image) in HTML or even in general technical aspects is a binary representation of visual information. By visual information we mean, in the form of drawings/pictures,...

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.

Html <colgroup> Tag

A HTML table's column group is specified by the "colgroup" tag. If you want to apply various properties to one or more <col> elements in an HTML table, then you...

4 minutes read.

Html &lt;datalist >Tag

The autocomplete feature in HTML files is provided by the <datalist> tag. It can be used in conjunction with an input tag to enable users to quickly fill out form...

4 minutes read.