Page 101 - TP_iPlus_V2.1_Class6
P. 101

background-repeat:repeat-y;}

                 H1 {background-color:green;
                 text-align:center;}
                 </STYLE>

                 </HEAD>
                 <BODY>
                 <H1>Tiles</H1>

                 </BODY>
                 </HTML>























                  i +  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}
                 </STYLE> </HEAD>



                                                                                                                  99
                                                                                        HTML—An Introduction
   96   97   98   99   100   101   102   103   104   105   106