THE BEST WEB DEVELOPER SITE

HTML DOM BR Object


BR Object

The BR object represents an HTML <br> element.

Access a BR Object

You can access a <br> element by using getElementById():

Example

var x = document.getElementById("myBR");
Try it Yourself »

Create a BR Object

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

Example

var x = document.createElement("BR");
Try it Yourself »

BR Object Properties

Property Description
clear Not supported in HTML5. Use style.clear instead.
Sets or returns the flow of text around floating objects

Standard Properties and Events

The BR object also supports the standard properties and events.


Related Pages

HTML reference: HTML <br> tag