Help on HTML5 Link

Tell us what’s happening:

I don’t know what I’m getting wrong. I’m pretty sure I’m not missing anything but I think I need to rearrange/take away some things.

Your code so far


<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, 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>

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 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

Hello!

You’re not correctly closing a tag. Check the code again and try to spot the error.

In case you’re tired, rest a little and try again tomorrow (or later), and if you give up:

Spoilers

<h3 id="footer"><!-- You're missing this character --><footer>Copyright...</footer></h3>

By the way, a footer tag should not be inside an h3 tag. In HTML, you certainly can do whatever you want and the browser won’t complain, but there are certain expectations about what a tag should contain.

A p tag is used to contain a paragraph, which in turn can contain certain other inline elements, whereas a div can contain any other tag (except for the body, header and html, of course).

Syntactically, it doesn’t make sense to have a footer, which is a tag to represent the footer of something bigger, inside a title tag, which denotes something used to attract user attention. However, the other way around does make sense (a h3 inside a footer).

Does this explanation make sense to you?

Hope it helps :slight_smile:.

Thank you!! That actually helped a lot haha.