html imbed image code example

Example 1: how to add an image in html

<img src="Add Image Source Here">

Example 2: images in html

<img src="image.jps">
//image.jpg is where you would put the inage source.

Example 3: how to embed an image in html

<img src="file.jpeg" width="200px" height="200px"> <!-- for images that are saved in the same folder as the HTML document -->
<img src="/media/USB/image.jpeg" width="200px" height = "200px" > <!-- the image source will vary by folder, which you can find the locations on the folder NAV on the top of your screen -->

Example 4: html how to insert image

<!--When the image is in the same folder as your html file-->
<img src="example.jpg">
<!--When the image is in a image folder-->
<img src="./image/example.jpg">

Tags:

Css Example