Including src attributes

Tell us what’s happening:
Describe your issue in detail here.
Hi all , day one at coding , i cant quite seem to placing src attributes need some help . Thanks

  **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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

HI @kengere !

Welcome to the forum!

You have a few syntax issues, plus you are using the wrong url here.

I would reset the lesson.

Here is the correct structure for an image tag.

<img src="url goes here" alt="descriptive text goes here">

Make sure to follow that structure.
Also here is the correct url from the directions.
Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

Hope that helps!

Hi , how do I set src attribution

(As Jessica Said, the lesson should probably be reset)

In the tutorial, we are asked to:

FIRST: Insert an <img> element, within the existing <main> element, before the existing <p> elements.

Screenshot 2022-03-20 4.35.19 PM


SECOND: Set the src (SOURCE) attribute so that it points to the url: https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg





THIS IS AN IMAGE TAG’S STRUCTURE:

<img src="SOURCE ATTRIBUTE HERE" alt="ALTERNATE TEXT HERE">

We input the image address https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg as a “SOURCE ATTRIBUTE”.


THIRD: Give your <img> element an alt attribute with applicable text.
The tutorial asks that we write our own text in the alt="ALTERNATE TEXT "

1 Like

were you able to solve it or did you still need help?