WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM HR Object


HR Object

The HR object speaks to a HTML <hr> element.

Access a HR Object

You can get to a <hr> component by utilizing getElementById():

var x = document.getElementById("myHR");

Create a HR Object

You can make a <hr> component by utilizing the document.createElement() method:

var x = document.createElement("HR");

HR Object Properties

Property Description
align Not upheld in HTML5. Use style.textAlign instead.
Sets or returns the arrangement of a level line
color Not upheld in HTML5. Use style.color instead.
Sets or returns the shade of a flat line
noshade Not bolstered in HTML5.
Sets or returns whether a flat line should render in one strong shading (noshaded)
size Not bolstered in HTML5. Use style.height instead.
Sets or returns the tallness of a level line
width Not bolstered in HTML5. Use style.width instead.
Sets or returns the width of an even line

Standard Properties and Events

The HR object additionally underpins the standard properties and events