wap-notes


Introduction to HTML

Overview of HTML and Its Importance

HTML (HyperText Markup Language) is the standard language used to create and design web pages. It provides the fundamental structure for web content, allowing browsers to interpret and display text, images, links, and other elements in a readable format. HTML is essential for building websites and web applications because it defines the layout and organization of content.

Basic Structure of an HTML Document

An HTML document is structured with several key components. Here is a basic example of an HTML document structure:

<!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>
    <style>
        /* CSS styles can be included here */
    </style>
</head>
<body>
    <header>
        <h1>Welcome to My Website</h1>
    </header>
    <main>
        <section>
            <h2>About Us</h2>
            <p>This is a brief description about us.</p>
        </section>
        <section>
            <h2>Our Services</h2>
            <p>Details about the services we offer.</p>
        </section>
    </main>
    <footer>
        <p>&copy; 2024 Your Company</p>
    </footer>
</body>
</html>

Description:

HTML Elements, Tags, and Attributes

Elements are the building blocks of HTML. They are defined by tags, which can be paired (opening and closing) or self-contained.

Common HTML Elements

Heading Tags:

Paragraph Tag:

Line Break:

Horizontal Rule:

Bold Text:

Italic Text:

Underlined Text:

Anchor Tag:

Image Tag:

Button Tag: