我无法通过这个<img urlsrc="https://cdn.freecodecamp.org/curriculum/catphoto-app/relaxing-catage.jpg"> <img urlsrc="https://cdn.freecodecamp.org/curriculum/catphoto

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
main img p
<img urlsrc="https://cdn.freecodecamp.org/curriculum/catphoto-app/relaxing-catage.jpg">
<img urlsrc="https://cdn.freecodecamp.org/curriculum/catphoto-app/relaxing-catage.jpg">
<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>
  **Your browser information:**

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

Challenge: Add Images to Your Website

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/add-images-to-your-website[quote=“ifeanyirichard40, post:1, topic:463070, full:true”]
Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src="https://www.bit.ly" alt="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 (Linux; U; Android 8.1.0; itel W5504 Build/OPM2.171019.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/90.0.4430.210 Mobile Safari/537.36 OPR/54.0.2254.56224

Challenge: Add Images to Your Website

Link to the challenge:

[/quote]

You were told in the instructions:

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

That is not the url you are using. When I change that, the code passes for me.

1 Like

那应该怎样去写这条指令[quote=“kevinSmith, post:2, topic:504696, full:true”]
You were told in the instructions:

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

You have this:

<img src="https://www.bit.ly" alt="relaxing-cat">

The url you are giving the src is:

https://www.bit.ly

You were told to use:

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

<img src='https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg’alt=‘cat-photo-app/relaxing-cat.’>这条指令为什么会不对

thank you foryour help

1 Like