Page 84 - CA_165_V2.0_Flipbook
P. 84
<H1> TO <H6> HEADING TAGS
Heading tags are container tags. The heading tags ( from<H1> to <H6>) are used to add headings in the
HTML document. Headings are displayed in larger and bolder fonts, than the normal text size. Headings
are also used to organise the contents of the text.
<H1> to <H6> Tag
Type Function Attributes Contains Used Inside
Container tag Defines headings ALIGN Text content to Typically placed
in HTML. be displayed as a within <BODY>
heading. or other container
tags.
There are six levels of the heading tags, the first level i.e.<H1> tag displays the largest size of text and the
sixth level i.e.<H6> tag displays the smallest size of text and the other heading tags are with text sizes in
between <H1> to <H6>.
The ‘align’ attribute is used with these tags and it helps the headings to appear in left/ right/ center
alignment. The syntax for using the heading tags is as follows:
<H ALIGN = "LEFT" / "RIGHT" / "CENTER"> ... ... ... </H >
n n
For example:
Here (n) denotes heading size i.e., from 1 to 6
The following HTML code uses the heading tags (<H1> to <H6>) to display text in different heading
sizes:
<HTML>
<HEAD>
<TITLE> Using Headings </TITLE>
</HEAD>
<BODY BGCOLOR = "AQUA">
<H1>ORANGE EDUCATION</H1>
<H2>ORANGE EDUCATION</H2>
<H3>ORANGE EDUCATION</H3>
<H4>ORANGE EDUCATION</H4>
<H5>ORANGE EDUCATION</H5>
<H6>ORANGE EDUCATION</H6>
</BODY>
</HTML>
82 Touchpad Computer Applications-X

