HTML - Ayuda con una duda de HTML

 
Vista:

Ayuda con una duda de HTML

Publicado por David (1 intervención) el 28/12/2021 23:29:06
Hola a todos, estoy aprendiendo HTTML en una pagina y en uno de los ejercicios me pide enlaza secciones internas de una página con los elementos anchor.

Cambia el enlace externo a un enlace interno cambiando el atributo href a "#footer" y el texto de cat photos a Jump to Bottom.

Eliminar el atributo target="_blank" de la etiqueta anchor ya que esto provoca que el documento enlazado se abra en una nueva pestaña.

Luego agregar un atributo id con un valor de footer al elemento <footer> en la parte inferior de la página. Este ultimo es lo que no he logrado hacer. Agradeceria mucho su ayuda y explicacion.


Mi codigo es este


<h2>CatPhotoApp</h2>
<main>

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

<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>Copyright Cat Photo App"></footer>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de ScriptShow
Val: 359
Bronce
Ha mantenido su posición en HTML (en relación al último mes)
Gráfica de HTML

Ayuda con una duda de HTML

Publicado por ScriptShow (409 intervenciones) el 29/12/2021 00:00:42
Saludos David,

un ejemplo en HTML sería:

1
2
<footer id="footer">Copyright Cat Photo App"></footer>

Espero sea útil.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar