Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.
**Tu código hasta el momento**
<h2>CatPhotoApp</h2>
<main>
<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.</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.</p>
</main>
<main>
<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="freeCodeCampn logo">
<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.</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.</p>
</main>
<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="freeCodeCamp logo">
**Información de tu navegador:**
El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36
Desafío: Agrega imágenes a tu sitio web
Enlaza al desafío:
Hi @JulioCaraballo,
Antes de todo, se repite su código. Intenta corregir eso.
Asegúrese de que el atributo src
, del elemento img
, sea la url
que se le proporcionó en el ejercicio:
https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
Y asegúrese de tener el elemento img
dentro del elemento main
, y antes de los elementos p
existentes.
Espero que esto ayude !
Ahora establece el atributo src
para que apunte a la url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
Finalmente, no olvides darle a tu elemento img
un atributo alt
con texto descriptivo.
lo puse asi.
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt= "foto del gatito">
y me sigue diciendo el error
Tu imagen debe tener un atributo
src
que apunte a la imagen del gatito., a la derecha veo la foto del gatito… no se que mas pide…
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 (’).
It really helps if you provide your full code and a link to the challenge you are working on.
NO ENTIENDO , SI CERRAS MI PREGUNTA, NO LO VOY A APRENDER… PERO GRACIAS. NO FUE MI INTENCION HACER SPAM, Disculpe
Have you seend this part of the instructions?
Ahora establece el atributo src
para que apunte a la url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
Esta es la forma correcta de agregar una imagen :
<img src="" alt="">
Observe cómo está agregando un espacio justo después del atributo alt=
.
ok, gracias, ya salio… muy amable…
1 Like