Ads (728x90)

Techonlogy

Subscribe Here

Sponsor

Social Share

Recent

Business

Video

Gallery

videos

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

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


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="Hubkart.blogspot.in">
  <img src="hubkart.gif" alt="hubkart" width="50" height="50">
</a>


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

Post a Comment