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");

Create a BR Object

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

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

BR Object Properties

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