# What does alt mean

**URL:** <https://forum.freecodecamp.org/t/what-does-alt-mean/423057>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [September 28, 2020, 9:35am UTC](https://forum.freecodecamp.org/t/what-does-alt-mean/423057 "2020-09-28T09:35:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pakhi13](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pakhi13/32/180812_2.png) [@pakhi13](https://forum.freecodecamp.org/u/pakhi13)\
**Post date:** [September 28, 2020, 9:35am UTC](https://forum.freecodecamp.org/t/what-does-alt-mean/423057/1 "2020-09-28T09:35:07Z")

</div>

**Tell us what’s happening:**

**Your code so far**

```html

<h2>CatPhotoApp</h2>
<main>

<img src="https://www.freecatphotoapp.com/your image.jpg"alt="fcc-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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36`.

**Challenge:** Add Images to Your Website

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/add-images-to-your-website)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![mukeshgurpude](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mukeshgurpude/32/180919_2.png) [@mukeshgurpude](https://forum.freecodecamp.org/u/mukeshgurpude)\
**Post date:** [September 28, 2020, 9:43am UTC](https://forum.freecodecamp.org/t/what-does-alt-mean/423057/2 "2020-09-28T09:43:01Z")

</div>

alt is used to define alternative text for an image…  
In case if for some reason your image can’t be displayed on the webpage, text inside alt attribute is shown as to give clue to the user about what image was…  
Here’s an example  
`<img alt="My alt text" src="pic.jpg">`

will give following html:  
 ![My alt text]()

# regarding your code

you’ve not closed `"` for alt text and then not closed the `img` tag  
you should write:

```auto
<img src="https://www.freecatphotoapp.com/your image.jpg"alt="fcc-relaxing-cat">

```

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [May 31, 2021, 3:10pm UTC](https://forum.freecodecamp.org/t/what-does-alt-mean/423057/3 "2021-05-31T15:10:51Z")

</div>

Closed on May 31, 2021, 3:10pm UTC


