w3schools.com

W3Schools.com

HTML Example:

<!DOCTYPE html>
<html>
<head>
<title>HTML Tutorial</title>
</head>
<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:


Dynamic Spaces

Learn More

Log in / Sign Up

Create a free account to track your progress, and get access to more features and learning materials.

Dynamic Spaces

Sign Up for Free

Become a Plus User

And unlock powerful features:

Learn More

Color Picker

W3Schools' famous color picker:

Colorpicker

Code Game

Help the Lynx collect pine cones!

Code Game

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

w3schools CERTIFIED . 2025

How To Section

Code snippets for HTML, CSS and JavaScript

For example, how to create a slideshow:

Learn How To

+1

Track your progress - it's free!