Lesson 1: Basic HTML Tags
(Horizontal Rules)

The <hr /> tag has a "width" attribute you can use to control the width of your horizontal rule. The width can be set by percentage or by number of pixels.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Welcome to HTML</title>
</head>

<body bgcolor="#bdbdbd" text="black">
<center>
This line is 75% of the window width
<hr width="75%" />
This line is 50% of the window width
<hr width="50%" />
This line is 300 pixels wide
<hr width="300" />
This line is 200 pixels wide
<hr width="200" />
</center>
</body>
</html>