• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
The Customize Windows > Computer and Internet > Internet > HTML5 accessKey Property : Keyboard Shortcut Guide

By Abhishek Ghosh August 24, 2014 7:38 pm Updated on August 24, 2014

HTML5 accessKey Property : Keyboard Shortcut Guide

Advertisement

HTML5 accessKey property is a hardcoded attribute or can be implemented via CSS or Javascript. The access key is an element which enables the user to press a key to jump or perform action. This is a detailed guide on how to implement HTML5 accessKey DOM element on your website. Previously, we have discussed about HTML5 Basics, HTML5 Vocabulary and Interfaces, a sample HTML5 iOS interface.

 

Access keys are specified in HTML5 using the accesskey attribute. The accesskey attribute value of an element is the keyboard key that the user need to press (combination with one or more other keys, as the browsers are different modifier keys will vary) to activate or set focus on that element on the webpage. Although the accesskey attribute sets the key that can be pressed, automatically it can not notify the user the existence of the accessibility option. It is therefore necessary that the webmaster of the page notify the user the value of the access key using the or highlight the letter on the link text corresponding to the assigned access key.

 

HTML5 accessKey Property : The Standard

 

Access keys are specified in HTML5 working draft :

Vim
1
2
3
http://www.w3.org/TR/html-markup/global-attributes.html
http://www.w3.org/TR/html-markup/datatypes.html#common.data.keylabellist
http://www.w3.org/TR/html5/single-page.html

Hardcoded attribute is taken as standard and example usage can be seen on Google Plus. To provide an easy example :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# simple example
<a href="/contact-us/" accesskey="1">Contact Us</a>
# of different subdomain
<a href="http://cloud.thecustomizewindows.com/" accesskey="c">Press C to Browse</a>
# css
*[accesskey]:after {content:' [' attr(accesskey) ']'}
# javascript example
# things before header
<script>
function accesskey()
   {
   document.getElementById('tcw').accessKey="t"
   }
</script>
# things after the header
<body onload="accesskey()">
<a id="tcw" href="https://thecustomizewindows.com/">TheCustomizeWindows</a>

Modifier key can vary so much depending on the Operating System, Browser and Device, it makes the usage of accessKey Property a questionable accessibility option to really help the user. For newer Safari (on Mac) Ctrl+⌥ are the modifier keys. For newer Opera (on Mac) ⇧ + Esc must be pressed before, although no modifier keys are required. Not to forget Microsoft’s excellent browsers ver {1,2,3,4,5,6,7,8,9,10,11,X,Y…n}. From fronted designing point of view, for websites using dynamic content management system like WordPress, practically a handbook is required to provide to the user in order to use them. We can not stress enough on this golden rule – never use letters (A-Z) as the access key value. It is surreal, but it is like that. An accesskey can activate another feature, emulate click on Ad.

Advertisement

---

HTML5-accessKey-Property

 

HTML5 accessKey Property : Thoughts

 

Beyond these limitations, keyboard shortcuts can be used and possibly should be used whenever possible without being duped of their real value. It remains to determine the use that we can do. This is useful for the mobile devices with small keyboard, lack of QWERTY keyboard or no keyboard (full touch interface).
So in practical life, for web development, we possibly need to think about the mobile devices only. As HTML5 has Input Types for mobile OS like iOS, possibly it is better to consider. Also, instead of simple hardcoding, Javascript based design is universal. Here is an easy template, if you save it as html file (open text editor, copy the thing, save as some name.html and open it on browser), where Tab will activate the canvas, some keys can move an element, try this gist.

That is all about HTML5 accessKey Property.

Tagged With use of access key in html5 , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1831 aWOmDV1vdZQDn30oS90kSPBpPDXjC6t0fBl4uiUBCarppra4cL4duY_ZcIxHtSkB ce6c65c5fea986d4db74dca19c0baed3639f0e64&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1830 N-JZQGVP8vSgPeivqSf92PjK7-58b9iU52E73OR3ddCI1l1XdX6TMh9rLfebyPVQ f37d191492d8137c41e3314bc397e232d9745d5f&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1829 KJbO05Utp3pZvliGcThG6gnDe7sDuPKElqPKoaic0CNNqmubJmkFhaXjHbqFeNBV b8c57e9b380164d9d894d13fbbb74f1fdf786e38&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , html5 shortcuts , html5 key property , html5 hot keys , html5 accesskey , html5 access hide keyboard , accesskey key for html5 menu page

This Article Has Been Shared 3511 Times!

Facebook Twitter Google+ Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to HTML5 accessKey Property : Keyboard Shortcut Guide

  • Creating a Facebook App of Your Own

    Creating a Facebook App of Your Own is not really that difficult if you follow our guide carefully and importantly define the need for Creating a Facebook App.

  • Who Writes For ZDNet Like Websites and Why You Should Read Cautiously

    Who Writes For ZDNet Like News Websites and Why You Should Read Cautiously and Must Not Give Any Importance Compared to Company and Established Single Authored Blogs.

  • Hashtag : All About Hashtag and Tools for the Advanced Users

    Hashtag is a string composed of one or more concatenated words, preceded by a pound or number sign ( # ). Tools exist for managing Hashtag.

  • Tools For Checking HTTP Requests and Responses From a Server

    Tools for checking HTTP requests and responses from a server are required for your web server’s response to a particular request. Here is an updated article.

  • How to Combine Multiple JQuery Files to One

    There are numerous ways to combine multiple JQuery files to one to decrease both the page loading time and the number of requests.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us



Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (15K Followers)
  • Twitter (4.4k Followers)
  • Facebook (5.2k Followers)
  • LinkedIn (3.3k Followers)
  • YouTube (1.5k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Explanation of the ESP32 Vulnerability Warnings December 6, 2019
  • OLTP versus OLAP December 4, 2019
  • What is OLTP (Online Transaction Processing)? December 3, 2019
  • How to Install PyCharm and Anaconda for Data Science December 2, 2019
  • Connect ESP32 Arduino With a Samsung Smart Watch December 2, 2019

About This Article

Title: HTML5 accessKey Property : Keyboard Shortcut Guide
2014-08-24

Author: Abhishek Ghosh
Subjects: Computer and Internet

Is Part Of:


TheCustomizeWindows,

Sunday, August 24th, 2014,
Vol.1(01),
p.1–41593 [IoT Ready Journal]


Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher:
jima.in

Cite this article as: Abhishek Ghosh, "HTML5 accessKey Property : Keyboard Shortcut Guide," in The Customize Windows, August 24, 2014, December 9, 2019, https://thecustomizewindows.com/2014/08/html5-accesskey-property-keyboard-shortcut-guide/.

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.


PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

web analysis

Copyright © 2019 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy