-1

I want a logo on my webpage but it isn't loading for some reason. Here's my code to include it in my html file:

<img src="IMG_4772.jpg" alt="Logo">

Here's what my file organization looks like: screenshot

Does anybody see where I'm going wrong? If it helps, I'm running a local server using Flask (python3 "filename" in terminal).

Nako
  • 13
  • 3

2 Answers2

0

Put the image in the static folder and use url_for.

<img src="{{url_for("static",filename="IMG_4772.jpg")}}" alt="Logo">
davidism
  • 121,510
  • 29
  • 395
  • 339
charchit
  • 1,492
  • 2
  • 6
  • 17
0

Can you try:

<img src="./IMG_4772.jpg" alt="Logo">

"./" gets the current path.

Client
  • 140
  • 1
  • 6