Seems like I have the correct code input but failing test(?)

I KNOW I have the correct structure but the test keeps failing me. Its for the internal a href and the id attribute code. This is what I have but the test result keeps failing(!???). Anyone see anything Im apparently missing?:

<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>
<h2 id="footer">Footer</h2>

Please provide a link to the challenge so we can figure out what is wrong with your code.


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 (’).

Thank you Jeremy. The page I was taking the tutorial on is here: https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements

Why did you turn the footer element into an h2 element?

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

because the example they gave me off to the right assigned an h2 to the code. so, remove the h2 open and closing tag?


So, when I used EXACTLY what the directions said (as far as the <a ref example and the <h2 id example below it) along with the changes its requesting it came up with an a failed test.

The directions did not tell you to replace the footer with something else. The instructions said to add an id to the footer.

THANK YOU, Jeremy! I’ll hop on it.

thank you so much for this :grinning:

Thank you for the topic, it’s super

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