With the World's largest web developer site.
<!DOCTYPE html>
<html>
<title> HTML Tutorial </title>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Try it Yourself
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
}
Try it Yourself
<button onclick="myFunction()">Click Me! </button>
<script>
function myFunction() {
let x = document.getElementById("demo");
x.style.fontSize = "25px";
x.style.color = "red";
}
</script>
Try it Yourself
With our online code editor,you can edit code and view the result in your browser
Try Frontend Editor (HTML/CSS/JS) Try Backend Editor (Python/PHP/Java/C..)Track your progress with the free "My Learning" program here at W3Schools.
Log in to your account, and start earning points!

Browse W3Schools without ads
Website hoisting (Includes Spaces PRO
Access to our HTML Video Tutorial
Learn MoreFor example,how to create a slideshow: