JavaScript > Methods

Big style in JavaScript

How to apply Big style to the text in JavaScript?


In case we want to apply the big font style to the text in the html page, we can use this approach.

<script>
        document.write("This is big text ");
        document.write(" This is big text".big());
</script>

In the above code snippet, we have written “This is big text” in both document.write lines but in the 2nd statement we have called the big() method using the text that makes this text in big style as you can see in the below picture.

OUTPUT

 Views: 3843 | Post Order: 43



Write for us






Hosting Recommendations