Link-to-internal-sections-of-a-page-with-anchor-elements

Tell us what’s happening:
when i click the href " Jump to Bottom",why it open a new window but not jump to the “footer” element?

Your code so far



<h2>CatPhotoApp</h2>
<main>
  
  <a href="#footer"> Jump to Bottom</a>
  
  <img src="https://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 id="footer">Copyright Cat Photo App</footer>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36.

Link to the challenge:

2 Likes

Hello,
I can not replicate your problem. I tried your code in Chrome and Safari and it does jump to footer.
When I click the link “Jump to bottom” the page scroll until footer is visible. This is the normal behaviour.

I have the same issue described here. did you get around this? my code is exactly the same as the posted here

CatPhotoApp

Jump to Bottom

A cute orange cat lying on its back.

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 Link to Internal Sections of a Page with Anchor Elementrip 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. 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.

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.

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.

footer . . I'm facing the same issue, the anchor text takes me to the new window of the freecodecamp website. Even though i had't included the link ??????????????

I’m facing the same issue, the anchor text takes me to the new window of the freecodecamp website. Even though i had’t included the link ???

Am also experiencing the same issue the anchor takes me to a new window instead of the jumping to the bottom of the page

Unfortunately I am facing the same issue too.
instead of jumping to bottom jumps to next page:

I also have the same issue described here. did you get around this? my code is exactly the same as the posted here

Following since I have the same issue. Thanks

I have the same issue. Is this a bug?

It is definitely a bug…

Yes It is, I am having the same issue for too long!

the same here. it does not jump to the bottom.

+1. i have the same issue.

That’s odd, it only jumps to a new page in the FCC course ware, not in Code pen see below:
https://codepen.io/johnny2136/pen/LBVrMW

Yes I am facing the same issue. Is this is a bug?

I am also facing the same problem.

Yup. Same issue here.

I use Chrome if that helps.

Same issue here, tried with notepad++ and the code leads to footer like it should. Something is wrong with the text editor and the end result from the editor on the page.
Did anyone find the solution?

Try adding target="_blank" inside the opening a tag. Maybe that will work…

<a href="#footer" target="_blank">Jump to bottom of the page</a>