Page 24 - KEC Khaitan C7 Flipbook
P. 24
Property Value Description
length in pixels or Specifies the indentation of the first line of the
text-indent
percentage text.
underline, overline or Specifies the text effects like underline,
text-decoration
strikethrough overline or strikethrough.
capitalise, uppercase, Specifies the transformation of text into
text-transform
lowercase and none uppercase, lowercase or title case.
Create an HTML webpage 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>Energy</H1>
<P style="font-family:Times New Roman; text-transform:uppercase"> Energy
is the capacity for doing work. It may exist in potential, kinetic,thermal,
electrical, chemical, nuclear, or other various forms.</P>
<hr style="width:80%; height: 10px; background-color:grey;">
<P style="font-family:Times New Roman; text-transform:lowercase">
Energy is a requirement in our everyday life as a way of improving
human development leading to economic growth and productivity.</P>
</BODY>
</HTML>
22 Premium Edition-VII

