--- id: 587d7790367417b2b2512aaf title: Make Links Navigable with HTML Access Keys challengeType: 0 videoUrl: 'https://scrimba.com/c/cQvmaTp' forumTopicId: 301021 dashedName: make-links-navigable-with-html-access-keys --- # --description-- HTML offers the `accesskey` attribute to specify a shortcut key to activate or bring focus to an element. Adding an `accesskey` attribute can make navigation more efficient for keyboard-only users. HTML5 allows this attribute to be used on any element, but it's particularly useful when it's used with interactive ones. This includes links, buttons, and form controls. Here's an example: ```html ``` # --instructions-- Camper Cat wants the links around the two blog article titles to have keyboard shortcuts so his site's users can quickly navigate to the full story. Add an `accesskey` attribute to both links and set the first one to `g` (for Garfield) and the second one to `c` (for Chuck Norris). # --hints-- Your code should add an `accesskey` attribute to the `a` tag with the `id` of `first`. ```js assert($('#first').attr('accesskey')); ``` Your code should add an `accesskey` attribute to the `a` tag with the `id` of `second`. ```js assert($('#second').attr('accesskey')); ``` Your code should set the `accesskey` attribute on the `a` tag with the `id` of `first` to `g`. Note that case matters. ```js assert($('#first').attr('accesskey') == 'g'); ``` Your code should set the `accesskey` attribute on the `a` tag with the `id` of `second` to `c`. Note that case matters. ```js assert($('#second').attr('accesskey') == 'c'); ``` # --seed-- ## --seed-contents-- ```html

Deep Thoughts with Master Camper Cat

The Garfield Files: Lasagna as Training Fuel?

The internet is littered with varying opinions on nutritional paradigms, from catnip paleo to hairball cleanses. But let's turn our attention to an often overlooked fitness fuel, and examine the protein-carb-NOM trifecta that is lasagna...

Is Chuck Norris a Cat Person?

Chuck Norris is widely regarded as the premier martial artist on the planet, and it's a complete coincidence anyone who disagrees with this fact mysteriously disappears soon after. But the real question is, is he a cat person?...

``` # --solutions-- ```html

Deep Thoughts with Master Camper Cat

The Garfield Files: Lasagna as Training Fuel?

The internet is littered with varying opinions on nutritional paradigms, from catnip paleo to hairball cleanses. But let's turn our attention to an often overlooked fitness fuel, and examine the protein-carb-NOM trifecta that is lasagna...

Is Chuck Norris a Cat Person?

Chuck Norris is widely regarded as the premier martial artist on the planet, and it's a complete coincidence anyone who disagrees with this fact mysteriously disappears soon after. But the real question is, is he a cat person?...

```