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.

Example

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

Live Demo

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

   <body>
      <script>
         var str = new String("Demo Text");
         document.write("Following is bigger text: "+str.big());
      </script>
   </body>
</html>

Updated on: 15-Jun-2020

640 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements