HTML DOM Bold object

The HTML DOM bold object is associated with the html (bold) tag. The tag is used to make the text inside the tag bold .Using the bold object we can access the HTML tag.

Syntax

Following is the syntax for ?

Creating a bold object ?

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

Example

Let us see an example for the HTML DOM Bold object ?



Click the below button to create a element with some text



Output

This will produce the following output ?

On clicking CREATE ?

Updated on: 2019-08-06T14:06:12+05:30

533 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements