Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question