Page 75 - CA_165_V2.0_Flipbook
P. 75

<BASEFONT> Tag

                 This is an empty tag. It is used to set the default colour, size and face type of the web pages. This tag
                 can be placed anywhere in the <BODY> tag of a document. The <BASEFONT> tag is supported only in
                 Internet Explorer 9 and earlier versions.


                                                          <BASEFONT> Tag

                       Type             Function            Attributes            Contains           Used Inside
                  Empty tag        Sets a default font   COLOR, SIZE, FACE   None (applies to the  Typically placed
                                   size, color, and face                     entire document by  within <BODY>
                                   for all text within                       default).            or other container
                                   the document.                                                  tags.



                 The <FONT> tag including <SMALL> and <BIG>  are used in relation to the font size  as set by the
                 <BASEFONT> tag.  This tag  has no  effect  on the  text  headings  (such  as the  <H1>, <H2>) tags.  The
                 following three attributes are used with tag:
                   COLOR                      SIZE                        FACE


                 COLOR  Attribute
                 This attribute of <BASEFONT> tag is used to assign a colour which becomes the default colour for the
                 text of entire HTML document. The syntax for using the COLOR attribute with the <BASEFONT> tag is as
                 follows:

                   <BASEFONT COLOR = "COLOR NAME" OR "#RRGGBB">
                 For example:

                   <BASEFONT COLOR= "Purple">
                         Notes


                         The COLOR attribute is not supported in HTML5.



                 SIZE Attribute
                 This attribute of <BASEFONT> tag is used to set any possible font size from 1 to 7, which becomes the
                 default font size for entire HTML document, although the default font size for normal body text is ‘3’.
                 The syntax for using the SIZE attribute with the <BASEFONT> tag is as follows:

                   <BASEFONT SIZE= "Value">
                 For example:
                   <BASEFONT SIZE= "5">
                         Notes


                           The SIZE attribute is not supported in HTML5.








                                                                                         Introduction to HTML    73
   70   71   72   73   74   75   76   77   78   79   80