Ads (728x90)


Subscribe Here


Social Share






How to insert image using HTML
You can use the following HTML code to insert a image into your html document.

<h2>Display image using HTML Code</h2>
<img src="images/hubkart.gif" alt="hubkart" width="200" height="200">

Images are defined with the <img> tag

The <img> tag is not a paired tag, it contains attributes only, and only have a start tag.

<img src="images/hubkart.gif" width="200" height="200" alt="Hubkart">

The SRC attribute defines the path of the image.

The ALT attribute contains the alternate text of the image, if image is not displayed.

For the size of the image you can use the attribute Width and Height. If not use the original size of the image will be diplayed on the webpage.

How to use image as a link?

<a href="">
  <img src="hubkart.gif" alt="hubkart" width="50" height="50">

Later on we discussed about the image map where from one picture you can link to many pages. 

Post a Comment