HTML Notes with Tag Examples

1. What is HTML?

HTML stands for HyperText Markup Language. It is the standard language for creating web pages and web applications.

2. Basic Structure of an HTML Document

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document Title</title>
    </head>
    <body>
        <h1>Hello, World!</h1>
        <p>This is a paragraph.</p>
    </body>
</html>

This is the basic structure of an HTML document. The <html> tag encloses the entire document, while <head> and <body> contain metadata and content, respectively.

3. Common HTML Elements

Here are some commonly used HTML tags: