w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



img accesskey attribute

The accesskey attribute on the img element:


Examples

<imgattribute="value(s)" >Examples
1.accesskey=keyboard key<<img> src=".." alt="alt text" accesskey="i">

Video demonstration accesskey attribute on img

HTML5 img accesskey attribute Tutorial

min video details
00:02 video tutorial: accesskey attribute on img
00:04 the accesskey attribute on img allows you to focus or activate that image through a keyboard key
00:17 in Firefox,Windows the key combination that activates the image is: Alt+Shift+accesskey which is in our case "i"

the key combination is different function of Browser and OS
00:22 it means that the function "openw()" will execute when:
- clicking on the image OR
- when pressing: Alt+Shift+i (if Firefox on Windows)
00:31 test: clicking on the image: result ok
00:39 testing the accesskey: Alt+Shift+i
00:41 test result ok: the function was executed → the image was activated (focused) through i keyboard key
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 class attributeimg draggable attributeimg hidden attributeimg id attributeimg lang attributeimg style attributeimg tabindex attributeimg title attributeimg translate attribute