|
Adding Alternate text:
Alternate text is an important tool for HTML images. It is displayed when the browser is unable to load the image. It defines the image and tells the viewers about the image. It is helpful in the cases of browsers which only display the text.
Alternate text is denoted by the alt attribute. The author can put any value in this alt attribute of his choice. An example of alt attribute is given below:
<img src=“house.gif” alt=“beautiful house”>
Important Image tags:
Tag
|
Description
|
<img>
|
Used to define an image
|
<area>
|
Used to define the clikable area inside an image
|
<map>
|
Used to define an image map
|
Note: The HTML document should not be bombarded with images because images take time to load and a lot of images can result in slowing down your page.
Resizing your image: The height and width of the can be changed using height and width attributes. However, it is not recommended to resize the image using these attributes because the image is transferred over the internet in its original size. By changing the size of the image, you will slow down the loading of your webpage.
Nevertheless, you can change your image size by using image a graphic program.
|