Q9. The following code is written to align the image in the center of the browser’s window. However, the desired result is not achieved. Mention the reason.
<IMG SRC=”house.gif ” ALIGN= “center”>
Ans. In HTML, five types of alignments are available to align an image. The alignments are top, bottom, middle, left, and right. Thus, the desired output is not achieved. If you want to center align an image, you need to use the <CENTER> tag.