Check out example codes for "img html". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

<img src="img_girl.jpg" alt="Girl in a jacket" style="width:500px;height:600px;">

Code Example 3

<!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>

Code Example 4

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

Code Example 5

<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 -->

Code Example 6

<img src="url" alt="alternatetext">

Learn ReactJs, React Native from akashmittal.com