HTML Example:

HTML Tutorial

<h1>This is a heading</h1>
<p>This is a paragraph.</p>


Try it Yourself

CSS Example:

body {
  background-color: lightblue;

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

Try it Yourself

JavaScript Example:

Click Me!

function myFunction() {
  let x = document.getElementById(“demo”); = “25px”; = “red”;

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


A CSS framework for faster and better responsive web pages

Learn W3.CSS

W3Schools’ famous color picker

Is stem cell therapy legal for athletes?

Exercises and Quizzes

Test your skills!

Web Templates

Browse our selection of free responsive HTML Templates

Is stem cell therapy legal for athletes?


Kickstart your career

Get certified by completing a course

Get started

w3schools CERTIFIED . 2021

How To Section

Code snippets for HTML, CSS and JavaScript


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

Read original article here.