HTML code for aligning a image.

Q9. Write the HTML code to insert an image in a Web page and align it to the right of the Web page.

Ans.

<HTML>

<HEAD>

<TITLE>

Inserting an Image

</TITLE>

</HEAD>

<BODY>

<IMG SRC=”doll.jpg” ALIGN=”right”>

</BODY>

</HTML>

The output of the above mentioned code is shown in Figure 1:

 

Figure 1: Aligning an Image

Leave a Reply

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

9 Views
%d bloggers like this: