Link to Internal Sections of a Page with Anchor Elements help Please

Link to Internal Sections of a Page with Anchor Elements help Please
0.0 0

#1

I am currently stuck with this bit of code, can anyone help me please?

Your code so far


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

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.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements/


#2

Why did you change the original opening footer tag to h2? The instructions did not tell you to do that. All you had to do was add the id=“footer” to the opening footer tag. Remove all h2 references. It might be easier to Reset the code and begin again.


#3

Okay thank you I am new to this its been awhile since i coded, where do i need to put the id tag at the bottom or in my a tag please? thank you for your help


#4

There is only one footer element and it looks like:

<footer>Copyright Cat Photo App</footer>

The id attribute and value will be in the opening footer tag, just like all attributes and their corresponding values.


#5

Ahhhh okay thank you :slight_smile:


#6

Hi i have tried both these and its still not working?code%204

Are any of them right please?


#7

The first one is close. You have an extra > Remember, the opening footer tag is <footer>. The id=“footer” goes between the < and >.


#8

Awww I get it now it worked thank you so much :slight_smile: