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

Create a Bold Object

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

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

Standard Properties and Events

The Bold object supports the standard properties and events.