Create 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: 2020-06-15T06:55:29+05:30

894 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements