- <!DOCTYPE html>
- <!--
- TAG NOTES:
- -->
- <html>
- <body>
- <h2>Changing style of an HTML element with JavaScript.</h2>
- <p id="demo"> JavaScript can change the style of an HTML element</p>
- <!-- This is using CSS. CSS can configure how the HTML elements look and feel. -->
- <button type="button" onclick="document.getElementById('demo').style.fontSize='35px'">Click Me!</button>
- </body>
- </html>
|