Different ways in which paragraph can be aligned.

Q3. List the different ways in which a paragraph can be aligned.

Ans.  There are three types of alignments, namely left, right and center. You need to use the appropriate alignment attribute with the <P> tag to align the paragraph text.

The code given below shows the use of the align attribute of the <P> tag:

<HTML>

<HEAD>

<TITLE> WELCOME TO HTML</TITLE>

</HEAD>

<BODY>

<P align=center> HTML stands for Hyper Text Markup language. </P>

<P align=right> The purpose of HTML is to display content in a Web browser. </P>

</BODY>

</HTML>

Leave a Reply

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

%d bloggers like this: