Page 73 - TP-Play_V-2.0_Book-7
P. 73
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 Size="10" width="80%" >
<p>This is the second paragraph of the tag.HTML is the standard markup
language for Web pages.</p>
<hr Size="10" width="80%" color="grey">
<hr Size="10" width="80%" color="Red">
</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
TEXT PROPERTIES
Text properties are used to change the appearance of the text. The properties and their values
used with the style attribute are given below:
More on HTML5 73

