Page 79 - Computer - 7
P. 79

HEADING <h> Tag

          The Heading tag <h> is used to display text in a larger and bolder font than the normal text. HTML
          provides six levels of headings – h1 to h6. Each level has its own predefined font size, with H1 being the
          largest and H6 being the smallest.
          The heading tags are container tags and are written as:

                                                    <Hn> ..... </Hn>
          where ‘n’ is a heading level and can take values from 1 to 6.

            Lab Activity 3                                                                         Experiential Learning

           To display text as different headings using H1 .. H6 tags.
            1.  Open Notepad and create the HTML document as shown below.
























            2.  Open the HTML document in Microsoft Edge.


























          HORIZONTAL RULE <hr> Tag

          The Horizontal Rule tag <hr> is used to add a horizontal line, across a web page to separate blocks of
          information. It is an empty tag and has no end tag. The Horizontal rule is displayed as a thin grey line.




                                                                                                              77
   74   75   76   77   78   79   80   81   82   83   84