Page 50 - 2403_Trackpad_V5.1_C6_Fb
P. 50

Create an HTML web page by using the background properties.                                                               H2 {color: Green; font-family: Arial; font-size: 25px; text-align:
                                                                                                                                            center}
                  <!DOCTYPE html>
                                                                                                                                            </STYLE> </HEAD>
                  <HTML>
                                                                                                                                            <BODY>
                  <HEAD>
                                                                                                                                            <H1>Measurement</H1>
                  <STYLE>
                                                                                                                                            <P style="font-family: verdana; font-size: 1.5em">Measurement is the
                  BODY {background-image: url("Save water.jpg");
                                                                                                                                            quantification of attributes of an object or event, which can be used
                  background-repeat:repeat-y;}
                                                                                                                                            to compare with other objects or events.</P>
                  H1 {background-color:green;
                                                                                                                                            <H2>Types of Measurement</H2>
                  text-align:center;}
                                                                                                                                            <P style="font-family:Arial Black; font-size: 1.5em">The three
                  </STYLE>
                                                                                                                                            standard systems of measurement are the International System of Units
                  </HEAD>
                                                                                                                                            (SI units), the British Imperial System, and the US Customary System.
                  <BODY>                                                                                                                    </P>
                  <H1>SAVE WATER</H1>                                                                                                       </BODY>

                  </BODY>                                                                                                                   </HTML>
                  </HTML>



                            FONT PROPERTIES

                  The font properties are used to change the font family, font size, and font style of the text. The
                  various font properties and their values are given in the table.




                       Property                              Value                             Description



                   font-family          Name of the font                                Specifies the font to be used
                                        Value is given in pixels. The default font size for  Specifies  the font size  used
                                        the text is 16px. HTML also allows us to specify  on the web page
                   font-size            the size in em or percentage, where 1 em =

                                        16px and the percentage is given in percent                                                              Tick ( ) if you know this.
                                                                                                                                                 ▶   Cascading Style Sheets (CSS) is a convenient method of styling the elements of a web page.
                                        for the default font size in the <body> element.
                                                                                                                                                 ▶   Font properties are used to change the font-family, font-size and font-style of the text.
                   font-style           normal, italic                                  Specifies the style of the font


                  Create an HTML web page by using font properties.

                  <!DOCTYPE html>                                                                                                                      MARGIN PROPERTIES
                  <HTML> <HEAD> <STYLE>                                                                                                     Margin is the space that appears around an element. The margin property is used to set margins

                  H1 {color: blue; font-family:  verdana;  font-size:  32px; text-align:                                                    for any web page element. The four sides used with the margin property are: left, right, top and
                  center}                                                                                                                   bottom. The value of sides can be measured in pixels (for example: 20px, 30px, etc.) or as a
                                                                                                                                            percentage of the window.



                   48   Premium Edition-VI
   45   46   47   48   49   50   51   52   53   54   55