# Src attribute in HTML

**URL:** <https://forum.freecodecamp.org/t/src-attribute-in-html/440746>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [January 15, 2021, 9:51am UTC](https://forum.freecodecamp.org/t/src-attribute-in-html/440746 "2021-01-15T09:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![falajusuccess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/falajusuccess/32/134214_2.png) [@falajusuccess](https://forum.freecodecamp.org/u/falajusuccess)\
**Post date:** [January 15, 2021, 9:51am UTC](https://forum.freecodecamp.org/t/src-attribute-in-html/440746/1 "2021-01-15T09:51:57Z")

</div>

**Tell us what’s happening:**  
It keeps telling me to add the src attribute after I’ve typed it in.

**Your code so far**

```html

<h2>CatPhotoApp</h2>
<main>
<img 
src="http://bit.ly/fcc-relaxing-cat"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 (iPhone; CPU iPhone OS 14_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1`.

**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:** ![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:** [January 15, 2021, 10:05am UTC](https://forum.freecodecamp.org/t/src-attribute-in-html/440746/2 "2021-01-15T10:05:02Z")

</div>

you are missing the `>` for your image element, and also you are missing a letter in the `src`, it should be `https://bit.ly/fcc-relaxing-cat`

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [July 16, 2021, 10:05pm UTC](https://forum.freecodecamp.org/t/src-attribute-in-html/440746/3 "2021-07-16T22:05:07Z")

</div>

Closed on July 16, 2021, 10:05pm UTC

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