Thursday, 2 June 2011

How to insert images in HTML document


To insert image in a HTML page we use <img> tag. The src attribute of this tag defines the image to display. Another attributes of <img> tag are “alt” defines the alternate text when picture is not available, “height and width” to define the height and width of image and “align” to set the alignment for the image.
E.g. <img src=”c:\windows\clouds.jpg” alt=”picture not found” height=300 width=250 align=”center”>

No comments:

Post a Comment