Page 71 - CA_165_V2.0_Flipbook
P. 71

Notes

                         The FACE attribute is not supported in HTML5.



                 Thus, a user can specify a list of font names, separated by commas and enclosed within quotes. If the first
                 choice of font is available in the system, the browser uses it, otherwise it tries the second choice, then the
                 third and so on. If the given attribute of the font is not available in the computer, then the browser accepts
                 the default font of the system. For example:

                    <FONT FACE="TIMES NEW ROMAN", "ARIAL", "COMIC SANS MS"> ORANGE EDUCATION
                   </FONT>
                 The following HTML code uses the <FONT> tag to style text with different fonts, colors, and sizes:

                 <HTML>
                 <HEAD>
                 <TITLE>
                 FONT TAG EXAMPLE

                 </TITLE>
                 </HEAD>
                 <BODY>

                 <FONT FACE="ARIAL" COLOR="BLUE" SIZE="5">
                 TECHNOLOGY IS CHANGING THE WAY WE LIVE AND WORK EVERY DAY.
                 </FONT>
                 <FONT FACE="VERDANA" COLOR="GREEN" SIZE="3">
                 A WALK IN THE PARK CAN DO WONDERS FOR YOUR MENTAL HEALTH.

                 </FONT>
                 </BODY>
                 </HTML>
                 The output of the preceding HTML code is as follows:
                                                              The output displays the font with a size of 5, a face of
                                                                       ARIAL, and a color of BLUE.




















                                                                                       Font Size 7 (Largest Size)
                                 The output displays the font with a size of 3, a FACE of
                                       VERDANA, and a COLOR of GREEN.


                                                                                         Introduction to HTML    69
   66   67   68   69   70   71   72   73   74   75   76