How to change the font size of a text using JavaScript?
Answers
Answered by
1
Style fontSize Property. Set the font size for a <p> element to "xx-large": getElementById("myP"). style. fontSize = "xx-large"; Try it Yourself » A demonstration of possible values: var listValue = selectTag. options[selectTag. selectedIndex]. text; Return the font size of a <p> element: getElementById("myP"). style. ...
Answered by
1
⤵️Heya Mate , your answer ⤵️
__________
On this count, Python scores far better than JavaScript. It is designed to be as beginner-friendly as possible and uses simple variables and functions. JavaScript is full of complexities like class definitions. When it comes to ease of learning, Python is the clear winner.
Similar questions