|
Back to HTMLhtml Lesson 1

Introduction to HTML

Learn the absolute basics of HTML, the skeleton of the web.

What is HTML?

HTML stands for HyperText Markup Language. It is the standard markup language for documents designed to be displayed in a web browser. HTML describes the structure of a web page semantically and originally included cues for the appearance of the document.

Basic Document Structure

Every HTML document follows a standard tree structure. Here is the minimal boilerplate code required for any webpage:

html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Page Title</title>
</head>
<body>

    <h1>My First Heading</h1>
    <p>My first paragraph.</p>

</body>
</html>

Try it yourself:

HTML
CSS
Result

Tags and Elements

HTML uses 'tags' to create elements. Most tags come in pairs: an opening tag `<tag>` and a closing tag `</tag>`.