'How to put a local .jpg file into a HTML document
I am in the beginning stages of building a website and have tried to put a picture that is on my computer into a HTML document that I've been working on in VS code. When I open the HTML document in a browser everything is there except for the image.
Methods tried: 1. 2. renamed the file then tried
I havent specified the width or height yet because im waiting to see the actual image
Solution 1:[1]
Just add <img src="path-to-img.jpg">, image and your html file should be in same directory.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | DanRotaru |
