Page 93 - Modular_V1.1_Flipbook
P. 93
Let us create a web page to set font style.
<HTML>
<HEAD>
</HEAD>
<BODY>
<P STYLE="FONT-STYLE:ITALIC; FONT-SIZE:40PX;">
THIS TEXT WILL BE RENDERED IN ITALIC STYLE
AND FONT SIZE OF 40PX.
</P>
</BODY>
</HTML>
Setting font style
ALIGN TEXT
The ‘text-align’ property is used to align the text in desired position. Left, Right, Center, Justify
are the types of available text alignment.
Syntax: <P STYLE = “TEXT-ALIGN: Value;”>
TEXT
</P>
Let us create a web page to set alignment of text.
<HTML>
<HEAD>
</HEAD>
<BODY>
<P STYLE="TEXT-ALIGN:RIGHT;">
THIS TEXT IS ALIGNED RIGHT.</P>
<P STYLE=TEXT-ALIGN:CENTER;">
THIS TEXT IS ALIGNED CENTER.</P>
<P STYLE="TEXT-ALIGN:LEFT;">
THIS TEXT IS ALIGNED LEFT.</P>
<P STYLE="TEXT-ALIGN:JUSTIFY;">
Electronics and Information Technology is one
of the fastest growing segments of the Indian Industry.
Cascading Style Sheets 91

