• 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
You are here:Home » 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 :

Advertisement

---

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.

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 Must provide accessKey header , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1829 KJbO05Utp3pZvliGcThG6gnDe7sDuPKElqPKoaic0CNNqmubJmkFhaXjHbqFeNBV b8c57e9b380164d9d894d13fbbb74f1fdf786e38&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , html5 shortcuts , html5 shortcut keys , html5 key property , html5 hot keys , html5 accesskey , html5 access hide keyboard , html accesskey set special key , using arrow keys on a keyboard for accesskey in html5
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, 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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • HTML5 Audio Tag and Embedding MP3 in WordPress Post

    HTML5 Audio Tag Element Represents a Sound or an Audio Stream. Embedding MP3 Such as Own Podcast in WordPress Single Even One Post is Easy Without any Plugin.

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

Get new posts by email:

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 (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

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

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