Page 111 - iPro_trackGPT_V5_Class6
P. 111

FONT PROPERTIES

                 By using CSS, you can change the font face, colour, style and size. Some font properties with 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  Specifies the font size used on the web
                  font-size
                                    font size for the text is 16 px.        page.

                  font-style        normal, italic                          Specifies the style of the font.
                                                                            Specifies how thick or thin characters in
                  font-weight       normal, bold, bolder, lighter
                                                                            text should be displayed.


                 Create an HTML5 web page by using the font properties.
                 <!DOCTYPE html>
                 <html>

                 <head>
                 <style>
                 h2 {color: green; font-family: arial; font-size: 25px; text-align: center}
                 p{font-family: verdana; font-size: 1.0em;}
                 </style> </head>
                 <body>

                 <h2>Classification on the Basis of Habitat</h2>
                 <p>
                 Habitat is a place where an organism lives and includes all biotic and
                 abiotic factors surrounding the environment. </p><hr><br>
                 Animals were classified on the basis of habitat by Aristotle, who is known
                 as the “Father of biological classification”. He described animals on the
                 basis of their environment which included water, air, and land.<br>


                                                                                       HTML—An Introduction      109
   106   107   108   109   110   111   112   113   114   115   116