Page 57 - PlugGPT_V2.0_C7_Flipbook
P. 57

Various Font properties and their values are given in the table below:

                   Property                      Value                        Description             Example

                                                                         Specifies the font to
                  font-family   Name of the font                                                 font-family: Arial;
                                                                         be used.
                                                                         Specifies  the  font
                                Value is given in pixels. The default
                  font-size                                              size  used on the  font-size:25px;
                                font size for the text is 16 px.
                                                                         web page.

                                                                         Specifies the style of
                  font-style    normal, italic                                                   font-style:italic;
                                                                         the font.
                                                                         Specifies   thickness
                  font-weight   normal, bold, bolder, lighter                                    font-weight:bold;
                                                                         of the font.


                 <!DOCTYPE html>
                 <HTML> <HEAD> <STYLE>
                 H1 {color: blue; font-family: verdana; font-size: 32px; text-align:
                 center}
                 H2 {color: Green; font-family: Arial; font-size: 25px; text-align:

                 center}
                 </STYLE> </HEAD>
                 <BODY>
                 <H1>Computer</H1>

                 <P style="font-family:  verdana;  font-size:  22px">A  computer  is a
                 versatile machine that can be used to carry out a variety of tasks. For
                 example, you can do your homework, play games, listen to songs and do
                 many other things on a computer.</P>
                 <H2>Types of Computer</H2>
                 <P style="font-family:Arial Black; font-size: 18px">There are many types

                 of computers. Based on their size, the types of computers are, micro
                 computer, mini computer, mainframe computer and super computer.
                 </P>
                 </BODY>

                 </HTML>

















                                                                                               More on HTML5         55
   52   53   54   55   56   57   58   59   60   61   62