Home / HTML Tips Generated By ChatGPT / Defining Keyboard Shortcuts with the accesskey Attribute in HTML The accesskey attribute specifies a shortcut key to activate/focus an element, enhancing usability. Source Code Click Me Press Alt + h (or Option + h on Mac) to activate the button.