Free tutorials, examples and references.
No sign-up needed, just start learning.
Or sign up to unlock premium features:
Already a member? Sign in
Your own Spaces, live on the web
Fresh problems & bonus XP
From Wood to Master Coder
Focus with zero distractions
Unlock gear, moods & rare skins
<!DOCTYPE html>
<html>
<head>
<title>HTML Tutorial</title>
</head>
<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;
}
</html>
The language for programming web pages
<button onclick=”myFunction()”>Click Me!</button>
<script>
function myFunction() {
let x = document.getElementById(“demo”);
x.style.fontSize = “25px”;
x.style.color = “red”;
}
</script>
</html>
Create an account to track your progress, get your own website,
and get access to more features and learning materials:
If you want to create your own website, check out W3Schools Spaces.
No installation required – just open your browser and start coding:
And unlock powerful features:
Streamline your teaching:
Code snippets for HTML, CSS and JavaScript
For example, how to create a slideshow:
www.w3schools.com/howto/



W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.
Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.