Name
<HR> — NN all IE all HTML all
Synopsis
<HR>
End Tag: Forbidden
The HR
element draws a horizontal rule
according to visual rules built into the browser with a variety of
attribute controls. As a block element, the HR
element starts and ends its rule on its own line, as if the element
were surrounded by BR elements. This element is
not a content container, and many of the attributes that have been in
use for a long time are deprecated in HTML 4.0 in favor of style
sheet rules. The HTML recommendation leaves default appearance
specifications up to the browser maker.
Example
<HR ALIGN="center" WIDTH="80%">
Object Model Reference
- IE
[window.]document.all.elementID
Attributes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Event Handler Attributes
|
Handler |
NN |
IE |
HTML |
|---|---|---|---|
onBeforeUpdate |
n/a |
4 |
n/a |
onBlur |
n/a |
4 |
n/a |
onClick |
n/a |
4 |
4 |
onDblClick |
n/a |
4 |
4 |
onDragStart |
n/a |
4 |
n/a |
onFocus |
n/a |
4 |
n/a |
onHelp |
n/a |
4 |
n/a |
onKeyDown |
n/a |
4 |
4 |
onKeyPress |
n/a |
4 |
4 |
onKeyUp |
n/a |
4 |
4 |
onMouseDown |
n/a |
4 |
4 |
onMouseMove |
n/a |
4 |
4 |
onMouseOut |
n/a |
4 |
4 |
onMouseOver |
n/a |
4 |
4 |
onMouseUp |
n/a |
4 |
4 |
onResize |
n/a |
4 |
n/a |
onRowEnter |
n/a |
4 |
n/a |
onRowExit |
n/a |
4 |
n/a |
onSelectStart |
n/a |
4 |
n/a |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access