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

JavascriptWeb DevelopmentFront End Technology

To change the font color of a text, use the fontcolor() method. This method causes a string to be displayed in the specified color as if it were in a <font color="color"> tag.

## Example

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

Live Demo

<html>
</html>