Linking internal sections of a page with anchor elements

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<a href="https://www.freecatphotoapp.com" target="_blank">cat photos</a>

<img src="https://www.bit.ly/fcc-relaxing-cat" 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>

<footer>Copyright Cat Photo App</footer>
<a href="footer">jump to bottom</a>

I don’t know what else to add to the code. Can anyone help me, please?

Challenge: Link to Internal Sections of a Page with Anchor Elements

Link to the challenge:

This is the same challenge, you might want to look at the code and then you can realize your mistakes, if further doubts then you can ask

@ginikaadiele1 ,

  • Do not create a new <a> tag. Make changes to your existing <a> tag.

  • Add id=footer to your <footer> tag

I have tried, I can’t seem to know what else to add or how to arrange. Can you be more specific with your answer, please?

I think @nivethakrishnan72 's repay could be helpful, I don’t want to repeat again

Hi @ginikaadiele1 !

You need to delete this

This is the anchor tag you are supposed to work with

Change your external link to an internal link by changing the href attribute to "#footer"

You first need to change this part

Here are the second part of the instructions
and the text from cat photos to Jump to Bottom .

You have to change this text

Here is the third part of the instructions
Remove the target="_blank" attribute from the anchor tag

Here is the fourth part of the instructions
Then add an id attribute with a value of footer to the <footer> element at the bottom of the page.

This is the footer

You need to add an id of footer to the footer tag

Hope that helps!

1 Like

Thank you so much for the detailed explanation. It helped me a lot. I appreciate.

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<a href="#footer">Jump to Bottom</a>

<img src="https://www.bit.ly/fcc-relaxing-cat" 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>

id=<footer>Copyright Cat Photo App</footer.>

Please, I can’t seem to figure my error in this code. The error message says, "the footer tag should have an id attribute set to “footer”. I did that and I still get the error message.

Challenge: Link to Internal Sections of a Page with Anchor Elements

Link to the challenge:

@ginikaadiele1

you should place id="footer" inside your <footer> tag

Do you mean something like this <id=“footer”>Copyright Cat Photo App

Thank you. I have gotten it right.

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