How do i add an alt attribute in order to add an image to my website

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

   **Your code so far**

<img src= "" alt=
<p>Kitty ipsum dolor sit </p>
<p>Purr jump eat the </p>

   **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 10; SM-G9650) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.79 Mobile Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

just add it like this <img src="link" alt="alternative text">

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

<img src= "

You have an empty space after your src attribute declaration, it might cause your code to fail. The alt attribute purpose is to display some informative text, what your image is displaying, when the image itself could not be loaded, for whatever reason. So usually, if your image has a kitten, you might include alt="cute kitten". It is also informative for visually impaired users, which cannot see the image and rely on that text field. Alt attribute is not requirement, to display an image, but it is accepted as good practice.

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