Learn to Code
With the world's largest web developer site.
HTML Example:
<!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
CSS Example:
body {
background-color: lightblue;
}
h1 {
color: white;
text-align: center;
}
p {
font-family: verdana;
}
Try it Yourself
JavaScript Example:
<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
Python Example:
if 5 > 2:
print("Five is greater than two!")
Try it Yourself
SQL Example:
SELECT * FROM Customers
WHERE Country='Mexico';
Try it Yourself
PHP
A web server programming language
Learn PHP
W3.CSS
A CSS framework for faster and better responsive web pages
Learn W3.CSS
W3Schools Spaces
If you want to create your own website, check out W3Schools Spaces.
It is free to use, and does not require any setup:
Learn More
My Learning
Track your progress with our free "My Learning" program.
Log in to your account, and start earning points!
Sign Up for Free
Become a PRO User
And unlock powerful features:
Learn More
Color Picker
W3Schools' famous color picker:
Code Game
Help the Lynx collect pine cones!
Play Game
Exercises and Quizzes
Test your skills!
Web Templates
Browse our selection of free responsive HTML Templates
Browse Templates
Kickstart your career
Get certified by completing a course
Get started
How To Section
Code snippets for HTML, CSS and JavaScript
For example, how to create a slideshow:
Learn How To