-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
  • 3
  • 2

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
  • 110,080
  • 24
  • 357
  • 317
charchit
  • 1,401
  • 2
  • 5
  • 17
0

Can you try:

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

"./" gets the current path.

Client
  • 120
  • 1
  • 6