to add images in HTML

How to add images in HTML – Easy way to add images

Adding an image is easier at any section in an HTML page. If you want to add images in HTML page, use the <img> tags. It is an empty tag, containing only attributes as it is not required to have a closing tag.

Always you should use the <img> tag inside <body>…</body> tag. Normally, the src attribute is used to include the image source i.e. URL of the image. Finally keep in your mind that the alt attribute is for adding alternate text, width for adding width, and height for adding the height of the image.

How to add images in HTML

Leave a Comment

Your email address will not be published. Required fields are marked *