Entry level coding

I don’t understand how my src attribute is not pointing to the image. What am i doing wrong? I literally copied and pasted.

  **Your code so far**

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

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13816.82.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.218 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

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

Finally, don’t forget to give your img element an alt attribute with applicable text.

You need to use these values.

I see the new kitten image now. I just don’t understand what you mean when you say “point” is it the > symbol?

point means path of that image

for example you have image called mycatimage.jpg and this is place in you folder called images.

then path of that image will be www.example.com/images/mycatimage.jpg

I finally got it thanks a bunch!!

Just to be clear since we have some non-native English speakers here…

Now set the src attribute so that it points to the url…

“point to” in this sense means “refer to”. It’s saying that that value in the src refers to a specific place on the internet. Similarly, you should say that your home address “points” to your house or your phone number “points” to your phone.

In this:

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

The src value “points” to https://www.freecatphotoapp.com/your-image.jpg, a location on the internet where that image can be found.

Just to add to the other comments. Remember images are files stored on a server. The browser can only connect to the server to find the image if it knows which server it needs to connect to! The path is used to tell the browser where to look for the image.

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