HTML DOM BR Object

BR object

The BR object represents the HTML <br> element.

Access BR object

You can use getElementById() to access the <br> element:

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

Try It Yourself

Create BR object

You can use the document.createElement() method to create a <br> element:

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

Try It Yourself

BR Object Properties

Properties Description
clear

HTML5 does not support. Please use style.clear.

Sets or returns the text flow around the floating object.

Standard Attributes and Events

BR Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Reference Manual:HTML <br> Tag