How to create a big font text using JavaScript?

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


You can try to run the following code to create a big font text −

Live Demo

      <title>JavaScript String big() Method</title>

         var str = new String("Demo Text");
         document.write("Following is bigger text: "+str.big());

Updated on: 15-Jun-2020


Kickstart Your Career

Get certified by completing the course

Get Started