Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 26 - 2615_KEC
P. 26

    Tick ( ) if you know this.
                           ▶  Cascading Style Sheets (CSS) is a convenient method of styling the elements of a webpage.
                           ▶  Font properties are used to change the font-family, font-size and font-style of the text.

                                MARGIN PROPERTIES

                      Margin is the space that appears around an element. The margin property is used to set margins
                      for any webpage element. The four sides used with the margin property are: left, right, top and
                      bottom. The value of sides can be measured in pixels (for example: 20px, 30px, etc.) or as a

                      percentage of the window.
                      An HTML webpage by using margin properties:

                      <!DOCTYPE html>

                      <HTML>
                      <HEAD> <TITLE>Changing Margin</TITLE>
                      <STYLE>H1{font-family:Comic Sans MS; text-align:center;
                         text-Decoration:underline;color:green}

                      P{Margin-left:40px}
                      </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

                       24   Premium Edition-VII

| 21 22 23 24 25 26 27 28 29 30 31 |