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

ALIGN

ID

LANGUAGE

SIZE

TITLE

CLASS

LANG

NOSHADE

STYLE

WIDTH

COLOR

    

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

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.