Page 103 - ConceptGP_C6_Fb
P. 103

MARGIN PROPERTIES

                 Margin is the space that appears around an element. The margin property is used to set margins
                 for any web page 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.

                 Create HTML web page 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 bcapacity for doing work. It may exist in potential, kinetic,thermal,
                 electrical,chemical,nuclear,or other various forms.</P>

                 <hr Size="10" width="80%" 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>

                                                                                            Inter-Disciplinary
























                                                                                            Formatting a Web Page  101
   98   99   100   101   102   103   104   105   106   107   108