Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 66 - 2629_Devagiri_C-7
P. 66

    THE <P> TAG
                      The <P> tag is used to define a new paragraph in HTML5, which starts with <P> and ends with

                      </P>. It is a container tag. By default, paragraphs are left-aligned.
                      The syntax for using the <P> tag is as follows:

                      <P> Paragraph Content </P>
                         Code      Write the HTML code to display the given web page using the <P> tag.
                           4

                      <!DOCTYPE HTML>

                      <HTML>
                      <HEAD>
                      <TITLE> Using Paragraph Tag
                      </TITLE><BODY>
                      <H1>Bengal Tiger</H1>
                      <P>
                      The Bengal Tiger is a majestic and powerful predator native to the
                      Indian subcontinent. Bengal Tigers are found in a variety of habitats,
                      including forests, grasslands and mangrove swamps.
                      </P>
                      </BODY>

                      </HTML>
                      THE <B> TAG

                      The <B> tag is used to make text bold. It is a container tag.

                      For example: <P><B>iPhone</B> is a popular smartphone. </P>
                      Output: iPhone is a popular smartphone.

                      THE <I> TAG

                      The <I> tag is used to italicise text. It is a container tag.
                      For example: <P><I>iPhone</I> is a popular smartphone. </P>

                      Output: iPhone is a popular smartphone.

                      THE <U> TAG
                      The <U> tag is used to underline text. It is a container tag. The <U> tag in HTML5 is used to represent
                      a span of text that is not clearly explained but is clearly highlighted for important meaning.

                      For example: <P><U>iPhone</U> is a popular smartphone. </P>
                      Output: iPhone is a popular smartphone.

                      THE <SUP> TAG

                      The <SUP> tag is used to show superscript text. It displays smaller text above the normal line.
                      It is a container tag. For example, x  + y  is coded as x<SUP>2</SUP> + y<SUP>2</SUP>.
                                                                  2
                                                           2

                       64
                            Premium Edition-VII

| 61 62 63 64 65 66 67 68 69 70 71 |