Brand new and can't figure this out or what I'm doing wrong

Link to Internal Sections of a Page with Anchor Elements

a ( anchor ) elements can also be used to create internal links to jump to different sections within a webpage.

To create an internal link, you assign a link’s href attribute to a hash symbol # plus the value of the id attribute for the element that you want to internally link to, usually further down the page. You then need to add the same id attribute to the element you are linking to. An id is an attribute that uniquely describes an element.

Below is an example of an internal anchor link and its target element:

<a href="#contacts-header">Contacts</a>
...
<h2 id="contacts-header">Contacts</h2>

When users click the Contacts link, they’ll be taken to the section of the webpage with the Contacts header element.

Change your external link to an internal link by changing the href attribute to "#footer" and the text from cat photos to Jump to Bottom .

Remove the target="_blank" attribute from the anchor tag since this causes the linked document to open in a new window tab.

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

THIS IS WHAT I"VE COME UP WITH

<h2>CatPhotoApp</h2>

<main>

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

<footer>Copyright Cat Photo App</footer>

<h2 id="footer">footer of page</h2>

Hello, Your post requires an edit. Please read instructions given in below post regarding how to enter a code block into a forum post. And also describe your question so that it makes easy for campers to understand it.

Hello there.

Do you have a question?

If so, please edit your post to include it.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


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

Sorry about that. This is the question that I’m having a lot of trouble with.
Change your external link to an internal link by changing the href attribute to "#footer" and the text from cat photos to Jump to Bottom .

Remove the target="_blank" attribute from the anchor tag since this causes the linked document to open in a new window tab.

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

THIS IS WHAT I HAVE

<h2>CatPhotoApp</h2>
<main>

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

<footer>Copyright Cat Photo App</footer>
<h2 id="footer">footer of page</h2>type or paste code here

What is your question about the code you have written? What is going wrong? What do you need help fixing? How is it not working?

Please tell us what is happening, rather than just copying the text from the challenge.

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

This is not the way to write the a element, in this test it should only link to #footer. Then, there is already a footer element given to you, that should have an ID of footer.

this is the question on the task

<h2 id="footer">footer of page</h2>type or paste code here

that is what I’ve written but it’s saying it’s wrong

Because, the tests want a <footer> element to have the ID of footer. Right now, you have an <h2> element which has the id of footer.

this is the first day i’ve started learning html so forgive me, what should it look like if you dont mind?
and thank you for responding, that’s very kind of you :slight_smile:

1 Like

We do not write the answer for you. What part of the example is confusing you?

You are still just copying the task prompt. I don’t know why you so ademately refuse to talk about your code, but it really is a critical skill to learn how to ask questions about your code if you want to become a programmer.

I cant figure out what is wrong with the code I’ve written. I’ve tried every variable and none of them are passing through. How am I adamentely refusing to talk about my code? That’s exactly what I’m talking about and exactly what I’m asking for help with.

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