Page 50 - modular_v2.0_HTML&_CSS_Fb
P. 50
4 FORMATTING A
WEB PAGE
Your Aim
to learn about:
l The <Hn> Tag l The <P> Tag
l The <BR/> Tag l The <HR/> Tag
l The <B> Tag l The <I> Tag
l The <U> Tag l The <SUP> and <SUB> Tags
l The FONT Properties l The <DIV> Tag
l Designing a Web Page
In the previous chapter, you have learnt about basic concepts of HTML. In this chapter, you will
read about more HTML tags which are used for formatting a web page.
THE <Hn> TAG
Every chapter in a book has various headings and sub-headings. These are known as levels of
headings. The heading tags are used to give similar effect to your web page. These are container
tags with a start tag and an end tag. HTML can define up to 6 levels of headings from h1 to h6.
The h1 is the first level of heading and the h6 is the last level of heading or sub-heading..
Different types of heading tags are shown below.
<!DOCTYPE HTML>
<HTML>
<HEAD> <TITLE> Example of Heading </
TITLE> </HEAD>
<BODY>
<H1> This is heading 1 </H1>
<H2> This is heading 2 </H2>
<H3> This is heading 3 </H3>
<H4> This is heading 4 </H4>
<H5> This is heading 5 </H5>
<H6> This is heading 6 </H6>
</BODY>
Using Heading Tag
</HTML>
48
Touchpad MODULAR (Ver. 2.0)

