Here we will have Understanding Image img Tag with src attribute.
The Image img Tag
The img tag embeds an image into the document.
The src attribute in img Tag
The src attribute is required, and contains the path to the image you want to embed.
src stands for source of the image.
The path for the image can be expressed in two ways:
1. Relative Path: Points to a location that is relative to the file you are linking from
The relativeness of the image can be:
Same Directory: logo.png
Moving Down into Sub Directories: images/main/logo.png
Moving Up into Parent Directories: ../Logos and Images/images/main/logo.png
2. Absolute Path: Points to a location defined by its absolute location.
E:/vikram/Learning Monkey/16. HTML5 and CSS3/Practice Program/logo.png
Link for playlists:
/ @learningmonkey
Link for our website: https://learningmonkey.in
Follow us on Facebook @ / learningmonkey
Follow us on Instagram @ / learningmonkey1
Follow us on Twitter @ / _learningmonkey
Mail us @ [email protected]