Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 104 - logicode 2609 C6
P. 104

    It sets the margin space on the
                       MARGIN-BOTTOM                 Value in pixels or percentage
                                                                                          bottom side of an element.
                                                                                          It sets the margin space on the
                       MARGIN-LEFT                   Value in pixels or percentage
                                                                                          left side of an element.
                                                                                          It sets the margin for all four
                       MARGIN                        Value in pixels or percentage
                                                                                          sides.

                         Code
                           8       Write the HTML code to present the given web page using CSS margin properties.

                      <!DOCTYPE HTML>

                      <HTML>
                      <HEAD>
                      <TITLE>Using Margin Properties

                      </TITLE>
                      </HEAD>
                      <BODY STYLE="BACKGROUND-COLOR: #F0F8EF; COLOR: DARKSLATEGRAY;">
                      <H2 STYLE="COLOR: MEDIUMBLUE; TEXT-ALIGN:CENTER;">The Human Digestive

                      System</H2>
                      <P STYLE="BORDER: 1PX SOLID GREEN; FONT-SIZE: 14PT; MARGIN-TOP: 25PX;
                      MARGIN-LEFT: 30PX;">
                      <B>What is the Digestive System?</B><BR>

                      The digestive system is a group of organs that work together to break
                      down food, absorb nutrients and remove waste from the body.
                      </P>
                      </BODY>
                      </HTML>

                             Hashtag

                           #Syntax: It refers to the set of rules that decide how you should write code properly.
                           #Hexadecimal: It is a number system using 16 symbols: 0-9 and A-F, often used in computers
                           for colours and data.
                           #Offset: It is a value that indicates the distance or position of something from a starting point.

                      102   Premium Edition-VI

| 99 100 101 102 103 104 105 106 107 108 109 |