Internal Sections of a Page with Anchor Elements errors

Internal Sections of a Page with Anchor Elements errors
0.0 0

#1

Can anyone tell me where I am going wrong?
Instructions:
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.


Code:

<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,  stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eatscratched.</p>
  <p>Meowwww om cops stops to pet cats, goes to jail.</p>
  <p>Inte 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>

Errors
There should be only one footer tag on your page.
There should be only one footer tag on your page.


#2

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


#3

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

You created an h2 element with the id of “footer”. It should be a footer element with the id of “footer”.