w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it

img hidden attribute

The hidden attribute on the img element:


<imgattribute="value(s)" >Examples
9.hidden="",  , hidden<img src="image.jpg" alt="alt text" hidden>
<img src="image.jpg" alt="alt text" hidden="">
<img src="image.jpg" alt="alt text" hidden="hidden">

Video demonstration img hidden attribute

HTML5 img hidden attribute Tutorial

min video details
00:03 video tutorial: hidden attribute on img
00:10 3 img elements on page
00:15 let's say the 2nd one is no longer relevant for the current page → user agents should not display it
00:29 the 2nd image has been hidden
00:33 the hidden attribute accepts as values:
1. "" (the empty string)
2. hidden (its canonical name)
00:46 if an element is relevant for the current page, hidden attribute must NOT be present on that element
img intro img optional img occurrences img browser display img parents server-side image map (ismap) vs client-side image map (usemap) img syntaximg alt attributeimg ismap attributeimg usemap attributeimg width, height attributesimg src attributeimg accesskey attributeimg class attributeimg draggable attributeimg id attributeimg lang attributeimg style attributeimg tabindex attributeimg title attributeimg translate attribute