Page 107 - 2620_Birla Open Mind C-7
P. 107

MARGIN PROPERTIES

                 Margin is the space that appears around an element. The margin property is used to set margins for
                 any web page element. There are properties for setting margins of each side of an element. They are -
                 margin-top, margin-bottom, margin-left, margin-right. The value of margins can be measured in pixels
                 (for example: 20px, 30px, etc.) or as a percentage of the window.

                 Create HTML5 web page by using margin properties.

                 <!DOCTYPE html>

                 <HTML>
                 <HEAD>
                 <TITLE> Changing Margin </TITLE>

                 </HEAD>

                 <BODY>
                 <H1 STYLE="font-family:Comic Sans MS; text-align:center; text-Decoration:underline;
                 color:green">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="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>








                                                                                                   #More on HTML5 105
   102   103   104   105   106   107   108   109   110   111   112