Breaks and Horizontal Rules

Welcome to our free HTML tutorial. This tutorial is based on Webucator's Introduction to HTML Training course.

Contact Us or call 1-877-932-8228
Breaks and Horizontal Rules

Breaks and Horizontal Rules

The <br> tag forces a line break. The <hr> tag creates a horizontal rule across the page. The code below shows how they are used:

Code Sample:

Text/Demos/BRandHR.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Breaks and Horizontal Rules</title>
</head>
<body>
<p>Sometimes<br>it is desirable<br>to break text across lines.</p>
<hr>
<p>And to separate text with horizontal rules.</p>
</body>
</html>

Code Explanation

The screenshot below shows how they appear by default:Brand HR Code Explanation

Next

This tutorial is based on Webucator's Introduction to HTML Training Course. We also offer many other HTML Training courses. Sign up today to get help from a live instructor.