add photo html code example

Example 1: adding image in html

<img src="image.png" alt="Description for image" width="250" height="250">

Example 2: how to add image in html

<img src="img_girl.jpg" alt="Image Load Error" width="500" height="600">

Example 3: images in html

<html>
  <head>
  </head>
	<body>
  <img src="exampel.end">
    </img>
  </body>
  
  
  </html>

Example 4: images in html

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

Example 5: 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">

Example 6: how to add image in html

<img src="[image link here]" alt="[alt text here]">

<!-- the src attribute defines an image link-->
<!-- the alt attribute shows text when the browser cannot show the image-->
<!-- When using semantics, the <img> should be surrounded by <figure> elements.-->

<figure>
  <img src="link.jpg" alt="an image">
</figure>

Tags:

Html Example