Html Image

Advertisements

Prev Tutorial Next Tutorial

Html Image

Html provide <img> tag to display image on web page or browser. Html <img> tag is an empty tag that contains attributes only, closing tags are not used with <img> tag. <img> have following attributes;

Image Attribute

  • src: are used for specify the source file from where you want to display image.
  • alt :attribute are used for specify alternate text to display in the place of image when browser is unable to display image. This name is helpful for search engine to find the image on web.
  • title: attribute are used for specify a title for the image that will be displayed when mouse is placed over the image for few seconds.
  • height: are used for specify height of image.
  • width: are used for specify width of image.

Example

<html>
<body>
<img src="/files/sublogo.png" alt="logo" title="html"
      height="200px;" width="250px;">
</body>
</html>

Result

logo

Browser supported

Element
<img>YesYesYesYesYes

Prev Tutorial Next Tutorial

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements