We can achieve dynamic content change and dynamic style changes with use of Javascript DOM
Javascript DOM is used to dynamically change content inside a webpage. Here is a simple script that provide to change of font size along with font family, size, style and color
<html> <head> <script> function displayResults() { document.getElementById("p1").style.fontFamily="Helvetica"; document.getElementById("p1").style.fontStyle="oblique"; document.getElementById("p1").style.fontSize="xx-large"; document.getElementById("p1").style.color="Red"; } </script> </head> <body> <p id="p1">This text is going to change</p> <br> <button type="button" onclick="displayResults()">Change Font Style, Familym Color and Size</button> </body> </html>