Page 95 - TP_iPlus_V2.1_Class6
P. 95
The <HR> Tag
The <HR> tag is used when you want to divide your web page into different sections. It is also
used when you want to draw a line between two paragraphs. It is an empty tag and does not
need an end tag. It gives a horizontal ruler (line) on the page, and then the next element will be
shown in a new line after the ruler.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>HR Tag</TITLE>
</HEAD>
<BODY>
<P>This is the first paragraph of the tag. HTML is the standard markup
language for Web pages.</P>
<HR>
<P>This is the second paragraph of the tag. HTML is the standard markup
language for Web pages.</P>
<HR>
</BODY>
</HTML>
The Bold Tag
The Bold tag is written as <b>. This tag is used to give a bold effect to your text. You need to tell
the web browser when to start using the bold effect and where to stop using the bold effect. It
is a container tag and used in pairs as <b> and </b>.
The Italic Tag
The Italic tag is written as <i>. This tag is used to give an italic effect to your text. You need to
tell the web browser when to start using the italic effect and where to stop using the italic effect.
It is also a container tag and used in pairs as <i> and </i>.
The <SUP> Tag
2
The <SUP> tag is used to turn the enclosed text into a superscript. For example, E=mc is coded
as E=mc<sup>2</sup>
93
HTML—An Introduction

