How can i make my code not in red

Tell us what’s happening:the codes scr and alt are in red and so far when i run the tests they show that there is no alt and scr cods included yet i include them

  **Your code so far**


<h2>CatPhotoApp</h2>
<main>
<img scr="https://bit.ly/fcc-relaxing-cat"alt"fcc-relaxing-cat"

<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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

This isn’t how you write an HTML tag: look at the example the instructions show you, yours is not like it, and you’ve misspelled “src”

<tagname attribute1="value" attribute2="value" />

Ending Tag is missing here.

here you a small typo the tests say:

Your image should have a src attribute that points to the kitten image.

Noticed the difference :question:

1 Like

but you need to close the tag img or not?

img is self-closing, a closing img tag </img> doesn’t exist

Yes img has its self closing tag

Like this:

<...content>

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