Can u tell me what's wrong i have done here

I don’t thing so @cyberYousuf any thing below is ok

This is ok:

<img src="" alt="">

This is also ok:

<img src="" alt="" />

the standard is to not use the / for self-closing elements

look at documentation

syntax like that <Name /> is something you use in React


The solution is this:

Replace this part of your code:

<img src = ""  alt ="  relaxing cat ">

For this one:

<img src = ""  alt ="  relaxing cat ">

It should work then. Apparently the freecodecamp test is validating the exact URL of the image.

I would also avoid using extra spaces between attributes and values, and inside the values themselves. The code should look like this:

<img src=""  alt="relaxing cat ">
1 Like