One anchor tag... HELP!

this is my code but it’s telling me only one anchor tag. I’m literally just starting and frustrated already…lol Anyone care to help this beginner. Here is my code…

<h2>CatPhotoApp</h2>

<main>

<a href="#footer">Jump to Bottom

<img src="https://cdn.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 id="footer">Copyright Cat Photo App</h1>

It looks like it posted the page rather than posting my code lol. Geez I need some help over here.

seems like you wrapped the whole page in the <a> tag. Just put it where it needs to be and don’t forget to close it just like this <a id="id">some text</a>

Edit: forgot to mention! if you want the <a> tag to jump to a specific place, you need to set the id of the tag you want it to jump to! For example you have a <a href="#test> and now you just need to set an id of the tag <section id="test"></section> to make this work

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

Hi @KingdomCode !

Welcome to the forum!

I have edited your post to inlcude the challenge link so we know what you are working on.
In the future, please use the Ask for Help button which generates your code and link for your in the forum. :grinning:


As mentioned earlier, you have an issue here

You are missing an end tag for your anchor tag

And You have an issue here

You shouldn’t end with an h1.
It should end with a footer tag.

When you fix those two things then it should pass.

Aloha…I appreciate you responding. I’m not quite sure what the issue is. I have it like that and it’s still saying it is wrong. This is how I ended it.

</main>

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

I started it like this

<main>


<a href="#footer">Jump to Bottom

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

I’m sorry. I’m literally just starting and trying to learn to code but I’m not sure what you mean by a footer tag. I basically copied from the example on that question and got these errors. Any help you have is greatly appreciated. Aloha

@KingdomCode ,

The footer tag means this <footer> in your code.

means opening footer tag means closing footer tag.

You have an error in your code, i.e You don’t have a closing footer tag in the code.

Similarly, you don’t have a closing(</a>) anchor tag in your code.

Kindly fix these issues. Hope this helps

You need to look in two areas.

No.1: This is not correct syntax

you are missing a </a> at the end.

No.2: This is not correct syntax.

You can’t have an opening footer tag and a closing h1 tag.
The tags have to match.

Please look at the documentation for both the anchor tag and footer tags to see how to write the correct code.

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