How to change HTML CSS style with JavaScript

1 Answer

0 votes
<p id="id-p">HTML content</p>

<button type="button" onclick="document.getElementById('id-p').style.fontSize='32px'">
    Click</button>

 



answered Aug 28, 2016 by avibootz
...