Tell us what’s happening:
I have tried 2 times unsuccessfully, so now I’m asking for help. Probably once you tell me what I did wrong I’m going to face palm myself and say something like: “I’m so stupid to not try that!”
Access keys can work on button elements but they also work on <a> elements. The example showed an access key attribute on a button element. But to solve the challenge you are asked to put access keys on the links. So you have the right idea you’re just applying it to the wrong kind of element
so above is one of the lines you changed and below are the instructions pasted for our convenience:
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).
So you have added an accesskey ‘g’ to a new button element that you added to the html (which was not there to begin with). This makes me think that you interpreted the word ‘link’ in the instruction “Add…to…link” to mean “Add…[button]”.
In HTML though a link is normally this tag <a href=
which is also called an ‘a’ tag or an ‘anchor’ tag.
It happens that if you reset the code (there’s a button called reset that you can use to do that), you will count exactly 2 <a tags in the original code. These are the links that the instructions referred to and to which the new accesskey tag is to be added.