Page 61 - Code & Click - 7
P. 61
Try This Critical Thinking
Identify and write the name of the tag used in HTML5 to perform the following tasks:
(a) Inserts a blank line. _______________
(b) Displays information about the document. _______________
(c) Encloses all the content to be displayed on the webpage. _______________
(d) Starts a new paragraph. _______________
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.
Experiential Learning
Lab Activity 3
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.
59