M
M
Medelin02018-04-04 15:27:50
HTML
Medelin0, 2018-04-04 15:27:50

Why is the image not showing in html?

Image 1.jpg is in the same place as this html file. When I try to open the html file with a browser, there is an empty square instead of a picture. Tried different browsers. Both files are stored on the local computer.

<!DOCTYPE html>
<html>
  <head>
    <title>My web page</title>
  </head>
  <body>
    <h1>Hi</h1>
                <img src="1.jpg">
  </body>
</html>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2018-04-04
@Medelin0

The static must be in the static directory .

A
Alex F, 2018-04-05
@delvin-fil

Well, I do not know what kind of server you have there. It’s the same, I don’t even know if it’s a base , it’s the beginning of the beginning.
h_1522938909_7058747_ca7b6dc904.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question