Page 177 - CA_165_V2.0_Flipbook
P. 177

21 st
                                                  Lab Assignment 'n Activity                   Century   #Technology Literacy
                                                                                                 Skills


                     Complete the following activity and tick on the circle.
                       Write HTML code to demonstrate the working of Internal and Inline Style Sheet.
                       Write HTML code to demonstrate the linking of External Style Sheet to a web page.
                       Write HTML code with the help of Inline Style Sheet concept to display the following

                         content in a web page.


















                   CSS MARGINS

                 CSS 'margin' properties enable to create space around an HTML element, outside any border. It is also
                 possible to use negative values to overlap the content. Properties to set margin around an element are:

                   margin: It specifies the top, right, left and bottom margin around an element.
                   margin-bottom: It is used to set the bottom margin of an element.

                   margin-top: It is used to set the top margin of an element.
                   margin-left: It is used to set the left margin of an element.

                   margin-right: It is used to set the right margin of an element.
                 Syntax to use the 'margin' property is as follows:

                   <P STYLE="MARGIN-TOP:Value; MARGIN-BOTTOM:Value; MARGIN-RIGHT:Value;
                    MARGIN-LEFT:Value;">

                   TEXT
                   </P>
                 <HTML>

                 <HEAD>
                   <TITLE>

                    ILLUSTRATION OF MARGIN
                   </TITLE>
                 </HEAD>
                 <BODY>

                   <P STYLE="MARGIN-TOP:200PX;



                                                                                        Cascading Style Sheets   175
   172   173   174   175   176   177   178   179   180   181   182