Search w3schools.com:

SHARE THIS PAGE

JavaScript small() Method

String Object Reference JavaScript String Object

Definition and Usage

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

This method returns the string embedded in the <small> tag, like this:

<small>string</small>

Syntax

string.small()


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The small() method is supported in all major browsers.


Example

Example

Display a string in a small font:

<script>

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

</script>

Try it yourself »


String Object Reference JavaScript String Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]