Learn to Code

With the world's largest web developer site.

Not Sure Where To Begin?

HTML

The language for building web pages

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

The language for styling web pages

CSS Example:

body {
  background-color: lightblue;
}

h1 {
  color: white;
  text-align: center;
}

p {
  font-family: verdana;
  font-size: 20px;
}
Try it Yourself

JavaScript

The language for programming web pages

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

A popular programming language

Python Example:

if 5 > 2:
  print("Five is greater than two!")

# This is a comment
x = 5
y = "Hello, World!"
print(y)
Try it Yourself

SQL

A language for accessing databases

SQL Example:

SELECT * FROM Customers
WHERE Country='Mexico';

SELECT * FROM Products
ORDER BY Price DESC;

INSERT INTO Customers (Name, City)
VALUES ('John', 'London');
Try it Yourself

PHP

A web server programming language

PHP Example:

<?php
$txt = "PHP";
echo "I love $txt!";

// This is a single-line comment
/* This is a multi-line comment */

$x = 5;
$y = 10;
echo $x + $y;
?>
Try it Yourself

jQuery

A JS library for developing web pages

Java

A programming language

C++

A programming language

W3.CSS

A CSS framework for faster web pages

Bootstrap

A CSS framework for designing web pages

Excel

Spreadsheet program

XML

Data transport and storage

React

A JavaScript library

Code Editor

With our online code editor, you can edit code and view the result in your browser

Hello World!

This is a paragraph.

W3Schools Spaces

If you want to create your own website, check out W3Schools Spaces. No installation required - just open your browser and start coding!

🚀 Build & Host Your Website
Learn More

Become a Plus User

And unlock powerful features:

Browse W3Schools without ads Build and host Websites Unlimited challenges Unlimited practice tests Get extra credits Priority support
Learn More

Exercises and Quizzes

Test your skills!

📝 Exercises

Practice with coding exercises

❓ Quizzes

Test your knowledge

Web Templates

Browse our selection of free responsive HTML Templates

Template 1
Template 2
Template 3
Browse Templates

Kickstart your career

Get certified by completing a course

Get started