The horizontal rule tag "<hr />" displays a shaded horizontal line
across the screen "page." This can be an excellent way to visually
separate sections of a Web page.
Unlike most tags in HTML, the <hr /> tag has no closing tag, thus
the " /" (again, with a space before the slash) is placed at the end
of the tag to make it XHTML compliant.
<!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">
This text will be displayed above the line.
<hr />
This text will be displayed below the line.
</body>
</html>
|