Page 55 - PlugGPT_V2.0_C7_Flipbook
P. 55
Property Value Description Example
capitalize, Specifies the transformation of text
text- text-transform:
uppercase, lower- into uppercase, lowercase or title
transform uppercase;
case and none case.
Create an HTML5 web page by using the text-properties.
<!DOCTYPE html>
<HTML>
<HEAD> <TITLE>Text Properties</TITLE>
<STYLE>
H1{font-family:Comic Sans MS; text-align:center;
text-Decoration:underline;color:red}
</STYLE>
</HEAD>
<BODY>
<H1>Earth</H1>
<P style="font-family:Times New Roman; text-transform:uppercase"> Earth
is the third planet from the Sun. It is the only planet that is known
to sustain life form. About 70% of the Earth's surface is covered with
water, rest of the earth surface is home to all the land dwelling
animals.</P>
<HR>
<P style="font-family:Times New Roman; text-transform:lowercase">
Life on earth is sustained majorly due to the atmosphere. It consists of
4 layers, namely troposphere, stratosphere, mesosphere and thermosphere.
</P>
</BODY>
</HTML>
More on HTML5 53

