Categories
HTML

Image in Html

In this chapter we learn about the IMAGE IN HTML.

IMAGE are used in the web pages to visual representation of the content. For displaying image on the web page we use <img>  tag .

<IMG /> TAG basically consists of three parts (attributes) that must be given for showing an img.

  1. <img /> itself tag.
  2. src (src is the source of picture from where it exists).
  3. alt (alt property is visible when img is not found then alt text is shown. alt stands for alternative).

There’s also many more properties that are used in the img tag “height” , “width”, “title” .

Height, width is use to define the height and width for an image and title tag show the title of an image.

Leave a Reply

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