From http://www.w3schools.com (Copyright Refsnes Data)

JavaScript bold() Method


String Object Reference JavaScript String Object

Definition and Usage

The bold() method is used to display a string in bold.

Syntax

stringObject.bold()


Example

Example

Display a text in bold:

<script type="text/javascript">

var str="Hello world!";
document.write(str.bold());

</script>

Try it yourself »


String Object Reference JavaScript String Object

From http://www.w3schools.com (Copyright Refsnes Data)