--- id: 587d7790367417b2b2512aaf title: Make Links Navigatable with HTML Access Keys challengeType: 0 videoUrl: '' localeTitle: Haga que los enlaces sean navegables con claves de acceso HTML --- ## Description
HTML ofrece la accesskey atributo para especificar una tecla de acceso directo para activar o traer el foco a un elemento. Esto puede hacer que la navegación sea más eficiente para usuarios que solo usan el teclado. HTML5 permite que este atributo se use en cualquier elemento, pero es particularmente útil cuando se usa con los interactivos. Esto incluye enlaces, botones y controles de formulario. Aquí hay un ejemplo: <button accesskey="b">Important Button</button>
## Instructions
Camper Cat desea que los enlaces que se encuentran alrededor de los dos títulos de los artículos del blog tengan atajos de teclado para que los usuarios de su sitio puedan navegar rápidamente a la historia completa. Agregue un atributo de accesskey a ambos enlaces y establezca el primero en "g" (para Garfield) y el segundo en "c" (para Chuck Norris).
## Tests
```yml tests: - text: El código debería añadir una accesskey atributo a la a etiqueta con el id de "primera". testString: 'assert($("#first").attr("accesskey"), "Your code should add an accesskey attribute to the a tag with the id of "first".");' - text: El código debería añadir una accesskey atributo a la a etiqueta con el id de "segunda". testString: 'assert($("#second").attr("accesskey"), "Your code should add an accesskey attribute to the a tag with the id of "second".");' - text: El código debe establecer la accesskey atributo en el a etiqueta con el id de "primera" a "g". Tenga en cuenta que el caso importa. testString: 'assert($("#first").attr("accesskey") == "g", "Your code should set the accesskey attribute on the a tag with the id of "first" to "g". Note that case matters.");' - text: El código debe establecer la accesskey atributo en el a etiqueta con el id de "segunda" a "c". Tenga en cuenta que el caso importa. testString: 'assert($("#second").attr("accesskey") == "c", "Your code should set the accesskey attribute on the a tag with the id of "second" to "c". Note that case matters.");' ```
## Challenge Seed
```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?...

```
## Solution
```js // solution required ```