style tag
br tag
p tag
TAG: hr
<hr />
The
hr
tag is used to render a horizontal rule (line). This is a very useful and commonly used tag.
The flow of the text and images is halted on the current line, the rule is rendered on the next line, and then the flow of text and images resumes on the following line. The exact amount of vertical space between the rule and any elements above and below it is browser dependent.
You are to use style sheets to effect the appearance of the rule.
This is a self-closing tag. The blank space before the slash (/) is recommended for maximum browser compatibilty.
Attributes and Events
class
dir
id
lang
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
style
title
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="eng">
<head>
<title>DevGuru XHTML hr Tag Example</title>
</head>
<body>
<
hr
>
<
hr style="color:red; height:15px; width:350px;"
>
</body>
</html>
Output:
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information