THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Bold Object


Bold Object

The Bold object represents an HTML <b> element.

Access a Bold Object

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

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

Create a Bold Object

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

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

Standard Properties and Events

The Bold object supports the standard properties and events.


Related Pages

HTML tutorial: HTML Text Formatting Elements

HTML reference: HTML <b> tag

JavaScript reference: HTML DOM Strong Object