HTML Image Tag
Image tag in html used to insert images into webpage. This tag provides power to enhance display of webpage.
Syntext :
<img src="address of image" alt="text" width="width of image" height="height of image" />
Detail of image attributes :
Syntext :
<img src="address of image" alt="text" width="width of image" height="height of image" />
Detail of image attributes :
- src This attribute define url of image or path of image.
- alt This is used to define name of image. If image is not display due to any reason then text in alt becomes visible.
- width This attribute define width of image.
- height This attribute define height of image.
Click to practice online example
Example :
<img src="http://www.programmingduniya.com/image/c-language/variable3.jpg" alt="image logo"/>
No comments:
Post a Comment