How To Insert Image In HTML From Folder?

Use the `img` tag

Set the `src` attribute to the image file path

If the image is in the same folder as the HTML file, use `src=”image.jpg”`

If the image is in a subfolder, use `src=”images/image.jpg”`

If the image is in a parent folder, use `src=”../image.jpg”`

Add an `alt` attribute for alternative text

Example: `Photo`

Suggested for You

Trending Today