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

Example

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

Create a Bold Object

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

Example

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

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