Stuck-like-a-truck

Tell us what’s happening:
dont understant how to ad id attribute to “footer”… smh

Your code so far


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

<a href="#footer""http://freecatphotoapp.com" >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>

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36.

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

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

Your code is mostly correct. However, there are a couple of issues.

  1. You have two lines of code for the footer (although only the one at the top of your code is complete — there is an opening and closing footer tag.

  2. The footer at the bottom <id="footer">Copyright Cat Photo App</"footer"> has the wrong syntax. How it is currently written you only have an attribute (id) and a closing tag (</footer>). Remember, in this exercise the code should have an opening tag, attribute and a closing tag.


Personally, I would copy line one of your code <footer>Copyright Cat Photo App</footer> to the bottom, where it should be and then I would update it by adding the id attribute to it and delete the line with the incorrect footer syntax.

Hopefully this helps you get to the correct answer.

1 Like

Hello @Alfonce,

I went through the test myself and see where your code went wrong.

When you think about an HTML document, you could think about the human body. Like HTML, we have a

  • Head (In HTML, this would be the Header - any code to render before rendering the page),
  • Body (the content of the page), and
  • Feet (the footer where you put any extra info that might be important like a contact us link or business hours).

If you notice in your code, your footer is above a person’s shoulders so-to-speak. Your footer should be at the bottom of the document only.

Among that, I would highly recommend you reset this exercise and try again. I’m available for any help you need. I can go through the entire exercise with you if you require that. I can understand how tough this exercise can be because even I had to re-read the instructions a few times to understand what is being asked. Sometimes you will find some hints in the instructions to know where to go and what to change.

1 Like