Tutorials References Exercises Videos Menu
Log in
Paid Courses Website NEW Pro NEW

Learn to Code

With the world's largest web developer site.


Not Sure Where To Begin?

HTML

The language for building web pages

Learn HTML
Video TutorialNEW
HTML Reference

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

The language for styling web pages

Learn CSS
CSS Reference
Buy Certificate

CSS Example:

body {
  background-color: lightblue;
}

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

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

JavaScript

The language for programming web pages

Learn JavaScript
JavaScript Reference

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

Learn Python
Python Reference

Python Example:

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

SQL

A language for accessing databases

Learn SQL
SQL Reference

SQL Example:

SELECT * FROM Customers
WHERE Country='Mexico';
Try it Yourself

PHP

A web server programming language
Learn PHP

jQuery

A JS library for developing web pages
Learn jQuery

Java

A programming language
Learn Java

C++

A programming language
Learn C++

W3.CSS

A CSS framework for faster and better responsive web pages
Learn W3.CSS

Bootstrap

A CSS framework for designing better web pages
Learn Bootstrap

Code Editor

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



Frontend Code Editor

Try Frontend Editor (HTML/CSS/JS)

Try Backend Editor (Python/PHP/Java..)

W3Schools Spaces

Build your own website with W3Schools Spaces.


Get Started for Free

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

W3.CSS Templates

BROWSE TEMPLATES

Kickstart your career

Get certified by completing a course

Get started w3schools CERTIFIED . 2022

How To Section

Code snippets for HTML, CSS and JavaScript

For example, how to create a slideshow:

LEARN HOW TO