image tag html code example

Example 1: img html

<img src="smiley.gif" alt="Smiley face" height="42" width="42">

Example 2: how to add image in html

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

Example 3: how do you code an image in html

<!DOCTYPE html>
<html>
   <head>
      <title>HTML img Tag</title>
   </head>

   <body>
      <img src="/html/images/test.png" alt="Simply Easy Learning" width="200"
         height="80">
   </body>
</html>

Example 4: img tag html

<img src="peng_ting.jpg" alt="peng ting" width="500" height="600">

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: img tag

<img src="the source image's url" alt="the image's description">

Tags:

Css Example