Page 165 - Webapplication11_C11_Flipbook
P. 165
The <BR> Tag
The <BR> tag is used when you want to start a new line, but do not want to start a new paragraph. This tag is also
known as line break. It is mainly used when you want your text to come in next line without leaving a blank line in
between. This tag forces a line break wherever you will place it. It is an empty tag. It is used as under:
<p align="center"> You use line <br> break tag to start a <br> new line </p>
It will be shown on your web page as under:
You use line
break tag to start a
new line
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 Subscript <sub> Tag
The <sub> tag in HTML is used to define subscript text, which is text that appears slightly below the baseline of regular
text. Subscript text is commonly used in mathematical formulas, scientific notations, and chemical compounds to
represent indices, exponents, or variables that require smaller text below the main line of text.
Example:
<p>This is an example of subscript: H<sub>2</sub>O (Water).</p>
Output:
This is an example of subscript: H O (Water).
2
Website Building Using HTML and CSS 163

