• 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

This Article Has Been Shared 750 Times!

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

  • 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

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

  • Exploring the Benefits and Advantages of Microsoft’s Operating System March 22, 2023
  • Web Design Cookbook: Accessibility March 21, 2023
  • Online Dating: How to Find Your Match March 20, 2023
  • Web Design Cookbook: Logo March 19, 2023
  • How Starlink Internet Works March 17, 2023

About This Article

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

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT