You are on page 1of 15

Adding <br>

and <hr> tags


Line Breaks
• Adding the <br/> tag
anywhere in the body of the
text places the text after the
tag at the start of the new
line.
<html>
<head>
<title> Quality Of A Good Student
</title>
</head> <body>
<h1> The admirable quality of a Good Student </h1>
<p> Most young people believe that all they need to do in order to be
good students is to work hard to earn knowledge and get the highest
scores.
<br/> As they grow up, they finally realize that a good student also
needs to be an active person in the community and a well-prepared
worker for the future. </p>
</body>
<html>
<head>
<title> Quality Of A Good Student
</title>
</head> <body>
<h1> The admirable quality of a Good Student </h1>
<p> Most young people believe that all they need to do highest scores.
<br/>
In order to be good students is to work hard to earn knowledge and get the
highest scores. <br/>
As they grow up, they finally realize that a good student also needs to be an
active person highest scores. <br/>
In the community and a well-prepared worker for the future. </p>
</body>
Horizontal
Rules
HORIZONTAL RULES
Horizontal rules are useful for creating
visual representations between
elements or sections of your HTML page.

<hr/>
<body>
<h1> The Admirable Quality of a Good Student </h1>

<hr/>
<p> Most young people believe that all they need to
do in order to be good students is to work hard to
earn knowledge and get the highest scores. As they
grow up, they finally realize that a good student also
needs to be an active person in the community and a
well-prepared worker for the future. <p>
How to put color in an
Horizontal Rule

<hr color=“red”>
How to change the size, width and
color of a Horizontal Rule

• <hr color=“red”
size=“3”
Width=“50%”/>
<body>

<h1 align="center"> The Admirable Quality of a


Good Student </h1>

<hr color=“red” size=“3” Width=“50%”


align=“center”/>
<p> Most young people believe that all they need to do in order to be good students
is to work hard to earn knowledge and get the highest scores. As they grow up, they
finally realize that a good student also needs to be an active person in the community
and a well-prepared worker for the future. <p>
</body>

You might also like