Applied Accessibility: Make Links Navigatable with HTML Access Keys

Applied Accessibility: Make Links Navigatable with HTML Access Keys
0.0 0

#1

Awfully confused what is wrong on here since there is no button text which should not be there and this is not passing, like on the website.

Your code so far



<body>
  <header>
    <h1>Deep Thoughts with Master Camper Cat</h1>
  </header>
  <article>
    
    
    <h2><a id="first" href="g"><accesskey="g">The Garfield Files: Lasagna as Training Fuel?</a></h2>
    
    
    <p>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...</p>
  </article>
  
  <article>
    <a id="second" href="C"> <accesskey="c"><h2>Is Chuck Norris a Cat Person?</a></h2>  
    
    <p>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?...</p>
  </article>
  <footer>&copy; 2016 Camper Cat</footer>
</body>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-accessibility/make-links-navigatable-with-html-access-keys


#2

Accesskey is an attribute, not a tag.

The way you added it is as if it is a tag.

An attribute is added to a tag.
Like this:

<a accesskey=ā€œgā€ etc.