JavaScript bold() Method: String Object
Description
The bold method() of the string object is used to display a string bold as if it were in a <b> tag.
Version
Implemented in JavaScript 1.0
Syntax
bold()
Parameter
None
Example:
In the following web document, bold() method displays a given string bold. The result will be <b>Father of Computer:-Charles Babbage</b>
View the example in the browser
Pictorial presentation: Output and Page source

Supported Browser
Internet Explorer 7 | Firefox 3.6 | Google Chrome 7 | Safari 5.0.1 | Opera 10 |
Yes | Yes | Yes | Yes | Yes |
See also:
JavaScript Core objects, methods, properties.
Previous: JavaScript blink() Method: String Object
Next: JavaScript charAt() method: String Object
Test your Programming skills with w3resource's quiz.