Blink element
HTML |
---|
Comparisons |
The blink element is a non-standard HTML element that indicates to a user agent (generally a web browser) that the page author intends the content of the element to blink (that is, alternate between being visible and invisible).[1] The element was introduced in Netscape Navigator[2] but is no longer supported and often ignored by modern Web browsers; some, such as Internet Explorer, never supported the element at all.[1]
Despite its initial popularity among
... At some point in the evening I mentioned that it was sad that Lynx was not going to be able to display many of the HTML extensions that we were proposing, I also pointed out that the only text style that Lynx could exploit given its environment was blinking text. We had a pretty good laugh at the thought of blinking text, and talked about blinking this and that and how absurd the whole thing would be. ... Saturday morning rolled around and I headed into the office only to find what else but, blinking text. It was on the screen blinking in all its glory, and in the browser. How could this be, you might ask? It turns out that one of the engineers liked my idea so much that he left the bar sometime past midnight, returned to the office and implemented the blink tag overnight. He was still there in the morning and quite proud of it.[2]
Usage
The blink element is non-standard, and as such there is no authoritative specification of its syntax or semantics. While
Syntax of the blink element type is identical to such standard
The blink element type was first invented for
Netscape only agreed to remove the blink tag from their browser if Microsoft agreed to get rid of the marquee tag in theirs during an HTML ERB meeting in February 1996.[7]
Some software supports the blink element as an
TAG_1995
in its source code.[9]Implementation
The blink value of the
<span style="text-decoration: blink;">Down to the porshrop, down to the streep</span>
This produces the following on the page — it is unlikely to actually blink due to modern browsers lacking support for the tag:
- Down to the porshrop, down to the streep
The blink element may also be implemented using CSS animations.
@keyframes blink {
0% { opacity:1 } 75% { opacity:1 } 76% { opacity:0 } 100% { opacity:0 }
}
blink, .blink-css {
animation:blink 0.75s ease-in infinite alternate!important;
}
When elements are then given the tag or class blink
, such as:
<span class="blink-css">Down to the porshrop, to the porshrop family treep</span>
This produces the following:
- Down to the porshrop, to the porshrop family treep
Similar effects can also be achieved through the use of JavaScript.
<script type="text/javascript">
(function() {
var blinks = document.getElementsByTagName('blink');
var visibility = 'hidden';
window.setInterval(function() {
for (var i = blinks.length - 1; i >= 0; i--) {
blinks[i].style.visibility = visibility;
}
visibility = (visibility === 'visible') ? 'hidden' : 'visible';
}, 250);
})();
</script>
<blink>Text to blink here</blink>
Or alternatively, the blink functionality can be implemented with the help of jQuery.
<script type="text/javascript">
setInterval(function(){
$('blink').each(function() {
$(this).toggle();
});
}, 250);
</script>
<blink>Text to blink here</blink>
Usability and accessibility
Even before the implementing of the blink tag in HTML, the
The blink element has been consistently criticized by usability and accessibility experts. In 1996 Jakob Nielsen described the element as "simply evil" in his Alertbox column "Original Top Ten Mistakes in Web Design".[12]
The World Wide Web Consortium's
The United States Access Board states that pages should "not use flashing or blinking text, objects, or other elements having a flash or blink frequency greater than 2 Hz and lower than 55Hz."[14]
The German Federal Government's Barrierefreie Informationstechnik-Verordnung (Accessible Information Technology Ordinance) also states that flickering or blinking content should be avoided.[15]
To comply with the User Agent Accessibility Guidelines a user agent must either "[a]llow configuration to render animated or blinking text content as motionless, unblinking text" or never blink text.
See also
References
- ^ a b c "<blink>: The Blinking Text element". MDN Web Docs. Mozilla. Archived from the original on 10 May 2023. Retrieved 11 September 2017.
- ^ a b c Montulli, Lou. "The Origins of the <Blink> Tag". www.montulli.org. Archived from the original on 31 March 2022. Retrieved 11 September 2017.
- ^ Eaton, Kit (7 August 2013). "Saying Goodbye To The HTML Blink Tag". Fast Company. Archived from the original on 19 May 2022. Retrieved 11 September 2017.
- ^ Bos, Bert (10 November 1999). "HTML40, but with BLINK added". World Wide Web Consortium. Archived from the original on 22 January 2023. Retrieved 12 December 2006.
This is basically just HTML40, but with BLINK added...The BLINK is merely added as a joke.
- ^ a b "VPAT for Firefox 3.0 and 3.5". Mozilla. 13 July 2009. Archived from the original on 17 May 2008. Retrieved 23 October 2009.
When pages use the HTML <blink> tag, Firefox uses a 1 Hz duty cycle with the text visible for 3/4 of each cycle.
- ^ a b "Firefox 23 Release Notes". Mozilla. 6 August 2013. Archived from the original on 7 July 2023. Retrieved 8 August 2013.
...Dropped blink effect from text-decoration: blink; and completely removed <blink> element...
- ^ Raggett, Dave; Lam, Jenny; Alexander, Ian; Kmiec, Michael (1998). "Chapter 2 - A history of HTML". World Wide Web Consortium. Archived from the original on 13 July 2023. Retrieved 24 July 2023.
The BLINK tag was ousted in an HTML ERB meeting. Netscape would only abolish it if Microsoft agreed to get rid of MARQUEE; the deal was struck and both tags disappeared.
- ^ Shankland, Stephen; King, Mary (16 April 2022). "20 Hidden Google Search Easter Eggs to Hunt For". CNET. Archived from the original on 27 May 2023. Retrieved 24 July 2023.
Type blink HTML into the search box, and you'll get a list of search results where the words "blink" and "HTML" are blinking.
- Android Open Source Project, Google. Retrieved 20 September 2019.
146 private static final String TAG_1995 = "blink";
- ^ "Underlining, overlining, striking, and blinking: the 'text-decoration' property". Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification. CSS Working Group, World Wide Web Consortium. Archived from the original on 11 May 2023. Retrieved 24 July 2023.
- ^ Meyers, Joe; Tognazzini, Bruce (1982). "Displays". Apple IIe Design Guidelines (PDF). Cupertino, California: Apple Inc. p. 38. Retrieved 24 July 2023 – via Internet Archive.
Flashing [text] should only be used to indicate imminent destruction of data or the program.
- ^ Nielsen, Jakob (30 April 1996). "Original Top Ten Mistakes in Web Design". Nielsen Norman Group. Archived from the original on 5 July 2023. Retrieved 24 July 2023.
Of course, <BLINK> is simply evil. Enough said.
- ^ Chisholm, Wendy; Vanderheiden, Gregg; Jacobs, Ian (5 May 1999). "Web Content Accessibility Guidelines 1.0". World Wide Web Consortium. Retrieved 20 July 2010.
- ^ "Revised 508 Standards and 255 Guidelines". United States Access Board. 18 January 2017. Archived from the original on 8 July 2023. Retrieved 24 July 2023.
Software shall not use flashing or blinking text, objects, or other elements having a flash or blink frequency greater than 2 Hz and lower than 55 Hz.
- ^ "BITV — Einzelnorm". gesetze-im-internet.de. 12 September 2011. Retrieved 3 March 2014.
- ^ "User Agent Accessibility Guidelines 1.0". World Wide Web Consortium. 17 December 2002. Archived from the original on 26 May 2023. Retrieved 23 October 2009.
Allow configuration to render animated or blinking text content as motionless, unblinking text.
External links