JavaScript bold() method
JavaScript String object
Definition and Usage
The bold() method is used to display a string in bold.
This method returns the string with an tag added, as shown below:
string
Syntax
string
.bold()
Browser support





All major browsers support the bold() method.
Example
Example
Display a string in bold:
Try it »
JavaScript String object