ANSWERS7.(b) 8.(b) 9.(d) 10.(b) 11.(a) 12.(d) 13.(b) 14.(d) 15.(d) 16.(b) 17.(a) 18.(c) 5.<IMG> 6.Internal 7.Top, bottom, middle 8.Rows, Coloumns 9.Cell spacing 10.1 11.width 12.<TR> 6.(F) 7.(F) 8.(T) 9.(T) 10.(T) 11.(F) 12.(F) 13.(T) 14.(T) 15.(T) 4.<THEAD> tag 5.Malito 6.Name 7.Integer or percentage value 8.External image 9.<TD Align ="Left"> |
1.Which HTML tag is used to insert an image in a page? Write an attribute used with this tag.
Ans.The <IMG> tag is used to add images in an HTML document. The Src attribute helps in defining the source of an image.
2.The following code is written to align an image in the center of the browser window. However, the desired result is not achieved. Give reasons.
<IMG Src="house.gif" Align="Center">
Ans.The center value is invalid in the Align attribute of the <IMG> tag. If the image has to be centered, the following code has to be written:
<center><IMG Src="house.gif"></center>
3.How can border be set for an image ?
Ans.We can add border around an image by using the Border attribute. It accepts value in terms of pixels.
Example:
<HTML>
<HEAD>
<TITLE>SETTING BORDERS
</TITLE>
</HEAD>
<BODY>
<CENTER>
<IMG Src="Flower.gif" Border=5>
</CENTER>
</BODY>
</HTML>
Learning computers with K ips