• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Forms > Adding Keyboard Shortcuts

Adding Keyboard Shortcuts

One great new feature of HTML 4 is the ability to add keyboard shortcuts to different parts of your page, including form elements. When the visitor types the keyboard shortcut, the form element is made active for further input (in the case of a text field) or selected (like a radio button).

To add a keyboard shortcut to a form element:

1.
Inside the form element's tag, typeACCESSKEY=".

2.
Type the keyboard shortcut (any letter or number).

3.
Type the final ".

4.
If desired, add information about the keyboard shortcut to the text so that the visitor knows that it exists.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint