Latest web development tutorials

JavaScript small () method

String Object Reference JavaScript String Object

Definition and Usage

small () method is used to display a string of small words.

This method returns a string plus <small> tag, as follows:

<Small> string </ small>

grammar

string.small()


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support small () method.


Examples

Examples

Use a small font size to display the string:

<script>

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

</script>

try it"


String Object Reference JavaScript String Object