Horizontal Rules


The horizontal rule tag, <hr>, can be used to draw a line across your page and can serve as a good break between the different sections of your page. You can also change the width and the size of your horizontal rules.

<html>
<head>
<TITLE>Title</TITLE>
</head> 
<body> 
<h1>This can be your main Topic</h1>
<h2>This is a Smaller Header</h2>
<hr>
<h3> The line above is a standard horizontal rule.
<hr size =4> The line above represents a thicker horizonal rule.
<hr size =3 width=50%> The line above shows how you can set both the size and width at the same time. 
<hr>
</h3>
</body>
</html>

Display this document


Return to HTML Tutorial Menu