<p id="demo">Hello World!</p>
<script>
function myFunction() {
document.getElementById("demo").style.fontSize = "25px";
document.getElementById("demo").style.color = "red";
document.getElementById("demo").style.backgroundColor = "yellow";
}
</script>
<button type="button" onclick="myFunction()">Bấm vào!</button>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.