< !DOCTYPE html >
< html >
< title > HTML Tutorial < /title >
< body >
< h1 > This is a heading < /h1 >
< p > This is a paragraph. < /p >
< /body >
< /html >
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
< script >
function myFunction() {
var x = document.getElementById
("demo");
x.style.fontSize = "25px";
x.style.color = "red";
}
< /script >
< button onclick="myFunction()" > Click Me! < /button >