# Image not showing in html

**URL:** <https://forum.codewithmosh.com/t/image-not-showing-in-html/26738>\
**Category:** HTML/CSS\
**Created:** [May 16, 2024, 9:54pm UTC](https://forum.codewithmosh.com/t/image-not-showing-in-html/26738 "2024-05-16T21:54:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_578](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@Sam\_578](https://forum.codewithmosh.com/u/Sam_578)\
**Post date:** [May 16, 2024, 9:54pm UTC](https://forum.codewithmosh.com/t/image-not-showing-in-html/26738/1 "2024-05-16T21:54:18Z")

</div>

Hello all,  
I’m trying to add an image to my website, however it’s not showing it all. I tried using different methods i found on the internet but nothing works. I tried different images still nothing. It only works when i get a link of an image directly from the internet.  
Does anyone know how to solve this?

 ![Picsart_24-05-17_01-53-53-445](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/d/dd201f7be2b91f11c2c1925d4533cf53ea29fdcf.jpeg)

---

<div class="post-metadata">

**Author:** ![techytony](https://avatars.discourse-cdn.com/v4/letter/t/e9bcb4/32.png) [@techytony](https://forum.codewithmosh.com/u/techytony)\
**Post date:** [May 17, 2024, 12:06am UTC](https://forum.codewithmosh.com/t/image-not-showing-in-html/26738/2 "2024-05-17T00:06:41Z")

</div>

I will chime in here, this is how I learned how to do images. First I do not evevr add my styles tags directly in my html.

I always have a seperate stylle.css sheet , and all my css goes into that style sheet. to add the image you use.

```
<img src="" alt=""> 

```

Be sue your path is corect to your image folder, this will add the image, then in your style.CSS add your CSS, you can add a clas slike logo, then style your CSS

.logo {  
width:75px;  
}

I hope this helps some!

---

<div class="post-metadata">

**Author:** ![cojackpilot](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cojackpilot](https://forum.codewithmosh.com/u/cojackpilot)\
**Post date:** [May 23, 2024, 4:41am UTC](https://forum.codewithmosh.com/t/image-not-showing-in-html/26738/3 "2024-05-23T04:41:27Z")

</div>

is this an Angular project?

---

<div class="post-metadata">

**Author:** ![Sam\_578](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@Sam\_578](https://forum.codewithmosh.com/u/Sam_578)\
**Post date:** [May 23, 2024, 4:53pm UTC](https://forum.codewithmosh.com/t/image-not-showing-in-html/26738/4 "2024-05-23T16:53:39Z")

</div>

Yes, it is an angular project
