Page 84 - Touchpad_Plus_V3.2_Class 7
P. 84
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 <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>
The <SUB> Tag
The <SUB> tag is used to turn the enclosed text into a subscript. For example, H O is coded
2
as H<sub>2</sub>O
Suppose, writing HTML5 code was like casting a spell. What kind of digital spells would
you create, and what effects would they have on your web page?
82 Plus (Ver. 3.2)-VII

