Sometime we need to change our CSS property using javascript. Here I'm giving an example that how can you change the font size of text using javascript.
1 2 3 4 5 6 7 |
<script> document.getElementById("demo").style.fontSize = "25px"; </script> <div id="demo">You are managing font size by javascript.</demo> |