Introduction to HTML

Introduction to HTML

HTML (HyperText Markup Language) is the standard markup language for creating web pages and web applications. With HTML you can create your own Website.

Note: HTML is not a programming language; it's a markup language that defines the structure of your content.

Basic HTML Document

Below is an example of a simple HTML document:

example.html
<!DOCTYPE html>
<html>
<head>
    <title>Page Title</title>
</head>
<body>
    <h1>My First Heading</h1>
    <p>My first paragraph.</p>
</body>
</html>

HTML Elements

HTML elements are the building blocks of HTML pages. An HTML element is defined by a start tag, some content, and an end tag:

<tagname>Content goes here...</tagname>