×
   ❮     
     ❯   
HTML

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 Tutorial
HTML Reference
Get Certified

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

Learn CSS
CSS Reference
Get Certified

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
Get Certified

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

Web Templates


Browse our selection of free responsive HTML Templates

W3.CSS Templates

Browse Templates

W3Teach is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Teach, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved. W3Teach is Powered by W3.CSS.