How to create a big font text using JavaScript?

JavascriptWeb DevelopmentFront End Technology

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>
raja
Updated on 15-Jun-2020 06:55:29

Advertisements