Alguien podria ayudarme?

Desgraciadamente no hablo ingles así que perdón si no me entiendes.
Problema: no eh entendido que significa el atributo "id"ni para que sirve entonces si alguien sabe que me lo haga saber porfa… aqui esta mi codigo::smiley:

<h2>CatPhotoApp</h2>

<main>

<a #footer="https://freecatphotoapp.com" target="_blank">cat photos</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>

<footer>Copyright Cat Photo App</footer>

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

Please post your full code and a link to the challenge. It is very hard to read screenshots.

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. Note: Backticks (`) are not single quotes (’).

1 Like

gracias por el consejo… ya mismo lo hare

1 Like

Perdón por la demora es que soy un poco tonto y no sabia como hacerlo

It’s no trouble at all. New things take a while to get the hang of.

Lemmie take a look and I’ll tell you what I see.

Alrighty, the test suite doesn’t like this line:

<a #footer="https://freecatphotoapp.com" target="_blank">cat photos</a>

Here is how this line started:

  <a href="https://freecatphotoapp.com" target="_blank">cat photos</a>

The challenge wants you to

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 .

This means that you need to change the value on the right side of the equal sign after href to "#footer".
Also, you need to change the text cat photos to Jump to Bottom.

Don’t forget to

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


When it comes to the footer element, you need to change this line

<footer>Copyright Cat Photo App</footer>

The challenge wants you to add an id attribute.
Up above, you have a href attribute. This means that inside of your a element you have a piece that says href=.....
So here, you need to add an id attribute, or something that says id=....whatever instructions want this to be set to.

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

de verdad muchas gracias pero lo que me interesaba saber era para que sirve el atributo: “id” específicamente

The id attribute helps the hyperlink know where to jump to by identifying the footer element.

1 Like

graciass! y tambien muchas gracias por la paciencia que me tuviste

1 Like

I’m glad I could help. Happy coding!