Why desired result is not achieved.

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.


Leave a Reply

Your email address will not be published. Required fields are marked *

503 Service Unavailable

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.