Help with cat img lesson

Eu to presa nesse bendito gato até agora, tem como me ajudar com os codigos? pq fica faltando só um deles…
o que falta é o : Sua imagem deve ter um src atributo que aponta para a imagem do gatinho.

Make sure the src attribute for the <img> is set to the URL given in the instructions at the bottom.

<h2>CatPhotoApp</h2>

<main>

  <img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

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

eu coloquei esse codigo aqui e apareceu o gato, está assim no meu mas infelizmente não consigo me livrar dessa bendita frase: Sua imagem deve ter um src atributo que aponta para a imagem do gatinho.

I moved your posts to its on topic.


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

Is the image URL you have in your HTML the same as what the instructions are asking for? The instructions are at the very bottom of the lesson. For me, they are saying:

" Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"

This is not the same image URL as you are currently using.

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

Eu usei esse código que está nas instruções ai fica faltando a parte que pede: Sua imagem deve ter um src atributo que aponta para a imagem do gatinho.

Desculpa to me esforçando pra entender

Yes, that image is in the lesson, but that’s not the image the instructions in the lesson are asking you to add to the HTML. Read the entire lesson. At the very bottom you will find the instructions with the image you should add to the HTML.


https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg  

Eu coloquei o outro codigo que vc disse, realmente era outro gato q instrução pede, coloquei esse codigo ai mas ainda to fazendo algo errado que fica aparecendo que falta: Sua imagem deve ter um src atributo que aponta para a imagem do gatinho.

Please show your full, updated code.

a foto do gato ?
assim:

https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

Eu to aprendendo mexer com isso, por isso não sei esses detalhes.

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

Please show your full code. We need to see absolutely every line you’re using.

<h2>CatPhotoApp</h2>
<main>

<img = "https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg 
alt ="A business cat wearing a necktie."
> 
<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>

A few problems:

  • You shouldn’t break your element across multiple lines

  • You still need the src part of your element

Example element:

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

The example element is all on one line and has src="...."

Nossa muito obrigada, agora sim consegui…valeu

1 Like

Yes already go through, thanks!

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