Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 97 - 2626_South Point_C-7
P. 97

    Output:

                                                                Using Font Style

                          Font Size

                     The ‘font-size’ property is used to increase or decrease the size of a font.

                     Example: <P STYLE="FONT-SIZE: FONT SIZE IN PX;">
                     TEXT

                     </P>
                     Let us create a web page to set font size.

                      <!DOCTYPE html>
                      <HTML>
                          <HEAD>
                          <TITLE> FONT SIZE </TITLE>

                          </HEAD>
                          <BODY>
                          <P STYLE="FONT-SIZE:40PX;">
                              THIS TEXT WILL BE RENDERED
                              WITH FONT SIZE OF 40PX.
                          </P>
                          </BODY>
                      </HTML>

                     Output:

                                                                                                 Using CSS in HTML5   95

| 92 93 94 95 96 97 98 99 100 101 102 |