Page 91 - CA_165_V2.0_Flipbook
P. 91
<BR> TAG
This is an empty tag. It is used to insert a line break. (A line break is like a typewriter’s carriage return
which takes us back to the left margin in the next line.) This tag is useful when sentences are to be written
in separate lines.
<BR> Tag
Type Function Attributes Contains Used Inside
Empty tag Inserts a line break, None Empty tag Typically placed
moving subsequent within <BODY> or
content to a new line. other container tags.
The syntax for using the <BR> tag is as follows:
<BR> Content <BR> Content
For example:
ORANGE EDUCATION <BR> INDIA
The following HTML code uses the <BR> tag to insert line breaks in the text:
<HTML>
<HEAD>
<TITLE> Using BR Tags </TITLE>
</HEAD>
<BODY BGCOLOR = "Green" TEXT = "white">
ORANGE EDUCATION, <BR> INDIA
<BR>A Complete Reference Book for Students
</BODY>
</HTML>
The output of the preceding HTML code is as follows:
Line break due to <BR> tag.
It does not leave any blank
space, but text starts in a
new line.
Introduction to HTML 89

