Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 23 - 2615_KEC
P. 23

    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.

                     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>

                                                                                                Formatting a Webpage  21

| 18 19 20 21 22 23 24 25 26 27 28 |