Learn HTML by Building a Cat Photo App - Step 8

Tell us what’s happening:
I am stuck at step 8… pls i need help

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more cat photos.</p>
      <img/>scr="https://cdn.freecodecamp.org/curriculum/cat-photo-app/ relaxing-cat.jpg">
    </main>
  </body>
</html>

Your browser information:

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

Challenge: Learn HTML by Building a Cat Photo App - Step 8

Link to the challenge:

Welcome to the forum!

You made the opening tag also into the closing tag with a /, not working in HTML.

the closing / has to go to the end.

Please fix this to be img followed by a space then followed by the word src (not scr) then followed by an equal sign

Hi Daniel, note that for self-closing tag, the / is not needed at the end.

i dont know what to do again… its doesnt work how ever i try

I’m a victim of NEXT.js, next screams at you if you forget the slash :upside_down_face:

1 Like

We don’t want to confuse you more, so here is what to do

Here is your code
<img/> link >

This is the right way (spoiler!)

<img link >

Can you try to reset the code and if you try one more time and you are stuck still, please reply here and post your new code again.

correct attribute is

Mod Edit: SOLUTION REMOVED

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/ relaxing-cat.jpg">

this new code didnt pass

I see a space in the URL.

Please make sure the value of src has no spaces at all.