The "align" attribute also works with the <hr /> tag.
The default alignment for the <hr /> tag is centered.
<!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">
<p align="left">left justified
<hr align="left" width="200" />
</p>
<p align="center">centered
<hr align="center" width="200" />
</p>
<p align="right">right justified
<hr align="right" width="200" />
</p>
</body>
</html>
|