Not sure what this is asking me to do

Directions:Change your external link to an internal link by changing the href attribute to #footer and the text from cat photos to Jump to Bottom.

Remove the target="_blank" attribute from the anchor tag since this causes the linked document to open in a new window tab.

Then add an id attribute with a value of footer to the element at the bottom of the page.

Errors: There should be only one footer tag on your page.
The footer tag should have an id attribute set to “footer”.

here’s what I typed:

<a href="#footer">https://www.freecatphotoapp.com">Jump to Bottom</a>
<h2 id="footer">Copyright Cat Photo App</footer></h2>
1 Like

Please post your full code and a link to the challenge you are working on. Thanks.

<h2>CatPhotoApp</h2>
<main>

  <a href="#footer">https://www.freecatphotoapp.com>Jump to Bottom</a>

  <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

  <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
  <p>Meowwww loved it, hated it, loved it, hated it yet spill litter box, scratch at owner, destroy all furniture, especially couch or lay on arms while you're using the keyboard. Missing until dinner time toy mouse squeak roll over. With tail in the air lounge in doorway. Man running from cops stops to pet cats, goes to jail.</p>
  <p>Intently stare at the same spot poop in the plant pot but kitten is playing with dead mouse. Get video posted to internet for chasing red dot leave fur on owners clothes meow to be let out and mesmerizing birds leave fur on owners clothes or favor packaging over toy so purr for no reason. Meow to be let out play time intently sniff hand run outside as soon as door open yet destroy couch.</p>

</main>

<h2 id="footer">Copyright Cat Photo App</h2>

Basic HTML and HTML5: Link to Internal Sections of a Page with Anchor Elements | freeCodeCamp.org

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Hi @benson7092 !

Welcome to the forum!

I am looking at your current code and I don’t see a footer tag here

Right now you are using h2 tags because the example used h2 tags.
But the directions want you to use footer tags.

The directions also wanted you to change the http url to #footer but instead you added both here.

once you fix those things, then it should pass

1 Like

What is this part? You need to remove the url that was there.

The footer still should be a footer, not an h2 element.

This looks like the right solution

I’m still very confused. I changed it to:

<footer>
  <a href="#footer" "https://www.freecatphotoapp.com">cat photos</a>

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."> </footer>

Here’s current errors:
There should be only one footer tag on your page. The a text should be “Jump to Bottom”. The footer tag should have an id attribute set to “footer”.

Rather than repeat myself (which is a concept in programming… D.R.Y.) maybe this link will help…

spoiler alert… but… the solution is already all over the place and Quincy himself has spoken about not worrying about that so much… so…

you’ve made a similar mistake to that… but you don’t actually have a footer tag so there is no footer section

It is best to pest your full code.


I formatted your code so that others can see it. You need to use backticks, not quotes, for formatting.


I would reset the code for this challenge. You have made a bunch of changes that were not part of the instructions, and those changes are confusing you.

Once you do that, you should do three things to the code

  1. Change your external link to an internal link by changing the href attribute to #footer and the text from cat photos to Jump to Bottom.

  2. Remove the target="_blank" attribute from the anchor tag since this causes the linked document to open in a new window tab.

  3. Then add an id attribute with a value of footer to the element at the bottom of the page.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.