THE INDIA LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

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():

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

Create a BR Object

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

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

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