HTML Images
Image makes our webpage more attractive and beautiful. Readers also like blog posts made with photos more than webpages made without photos. Therefore Image tag has been added to HTML. Image tag is used to insert a picture in an HTML document. Image is defined by <img> tag. <img> Tag is an empty HTML tag. Which does not have any companion tag i.e. closing tag.
Images can be inserted in different formats in an HTML document. You can add photos in formats like PNG, JPEG, GIFs, etc. Whatever format we want to use the image, we have to tell that format.
HTML Image Syntax
Syntax for inserting an image in an HTML document is given below.
<img src="url" alt="alternatetext">
Two things are important in Image Syntax. Firstly, the <img> Tag itself and secondly the src Attribute. You are already familiar with <img> tag. It works just like other opening HTML tags. But, src attribute is very useful and important in this tag. The job of this attribute is to define the image path in the document. The image you want to add to your webpage. The full URL of that picture has to be written inside double quotation mark (“”). So that a particular image can be downloaded in our document.















