Please help me out with this

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<a href="#footer" 
https://www.freecatphotoapp.com">jump to bottom</a>

<footer 
   id="footer"<footer>

<img src="https://footercdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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>Copyright Cat Photo App</footer>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 11; TECNO KF6i) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.101 Mobile Safari/537.36

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

Link to the challenge:

You added a footer:

<footer 
   id="footer"<footer>

but there was already a footer at the bottom (where footers, by definition, usually go):

<footer>Copyright Cat Photo App</footer>

That is where you were suppose add an id. Remove the footer you added and add the id where you were supposed to.

Where exactly do I need to add the I’d?

<footer 
   id="footer"><footer>

the Id is your individual access to this html-tag. You can give each tag an individual id or you group it in class. This helps you later on to “speak” with the tag for events (if you click on it, if a button call a function for this section, etc.).

edit: always close the html tags Text
alternative would be

class makes more sense if you have more than one (aka a group) that you want to ‘speak’ to via CSS or Javascript. The correct name is CSS-Selector.

Right, but for this challenge he has to add a specific id to a specific element.

@Eyitayo You added a footer with a correct it. You just need to remove that and add that id to the existing footer at the bottom.

Now I notice that that one you added isn’t formatted correctly.

You have this:

<footer 
   id="footer"<footer>

Notice that you are missing a closing angle bracket (>) after the id value, after the second double quote.

You were given this as an example:

<h2 id="contacts-header">Contacts</h2>

Note the start of that, the opening element:

<h2 id="contacts-header">

Without the id it would be:

<h2>

You need to do that to the footer. You have this at the bottom of the app:

<footer>Copyright Cat Photo App</footer>

You need to go and add some space before the first closing angle bracket (>) and add some space you can add an id and a value for that id attribute, as instructed.

Give it a try. If it doesn’t work, show us what you’ve tried.

Have tried it and it works!

2 Likes