Page 96 - TP_Prime_v2.2_Class_6
P. 96
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.
Prime (Ver. 2.2)-VI <!DOCTYPE html>
Create HTML5 web page by using margin properties.
<HTML>
<HEAD>
<TITLE> Changing Margin </TITLE>
</HEAD>
94 <BODY STYLE=”margin:50px 50px 70px 70px”>
<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>

