Page 166 - Webapplication11_C11_Flipbook
P. 166

The Superscript <sup> Tag
              The <sup> tag in HTML is used to define superscript text, which is text that appears smaller and slightly above the
              baseline of regular text. Superscript is commonly used for mathematical notations, footnotes, and references, such as
              exponents in mathematical equations or citations in academic writing.
              Example:

              <p> The area of a square is given by the formula: A = side<sup>2</sup> </p>
              Output:
              The area of a square is given by the formula: A = side 2

              Using the <FONT> Tag

              The <font> tag in HTML is essential for creating a visually appealing and readable web page. The font tag is used to
              customize a text’s colour, size, and style. Some of the attributes of <font > tag are as follows:

                                    Attribute                                          Description
               size                                                To change the text size in the HTML document. The range
                                                                   of the font size in HTML is 1 to 7 and the default size is 3.
               color                                               To set the text colour.
               face                                                To set the font type. The font should be installed in your
                                                                   system. Default is “Arial”.


                                                                                                 #Subject Enrichment
                                                                                                 # Communication
                        Video Session

                   Scan the QR code or visit the following link to watch the videos: HTML - Basic Tags

                   https://www.youtube.com/watch?v=uMIjPKUXEEE
                   HTML Introduction: How to Code a Simple Web Page
                   https://www.youtube.com/watch?v=WwNuvGLblJU
                   Now answer the following questions:

                   1.  What is the use of the <HR> tag?
                      .....................................................................................................................................................................................
                   2.  Write one line HTML code to create a heading of level 5.
                      .....................................................................................................................................................................................





                                                Lab Assignment ‘n Activity                  #Experiential Learning
                                                                                            #Computational Thinking



                 1.  Type the following code and see the output.
                     <!DOCTYPE html>

                     <html>
                     <head>
                     <title> My Webpage </title>
                     </head><body bgcolor="pink"><h1>My Shadow by R L Stevenson</h1>

                164     Touchpad Web Applications-XI
   161   162   163   164   165   166   167   168   169   170   171