# How to create a small font text using JavaScript?

JavascriptWeb DevelopmentFront End Technology

To create a small font text with JavaScript, use the small() method. This method causes a string to be displayed in a small font as if it were in a <small> tag.

## Example

You can try to run the following code to create a small font using JavaScript −

Live Demo

<html>
<title>JavaScript String small() Method</title>
</html>