# How to change the font size of a text using JavaScript?

JavascriptWeb DevelopmentFront End Technology

This method causes a string to be displayed in the specified size as if it were in a <font size= "size"> tag.

## Example

You can try to run the following code to change the font size of a text using JavaScript −

Live Demo

<html>
</html>