Introduction to HTML

HTML (HyperText Markup Language) is the standard markup language used to create and structure webpages. It is not a programming language but a structural language that defines the elements of a webpage using tags.

HTML documents start with <!DOCTYPE html> to define the document type.

An HTML document consists of elements like headings, paragraphs, links, images, tables, and forms, all enclosed within tags. A basic HTML structure starts with the <!DOCTYPE html> declaration, followed by the <html> element.

Features of HTML

HTML supports hyperlinks using the <a href="https://example.com">Link</a> tag.

Basic Structure of an HTML Document

Every HTML document follows a standard structure. Below is an example:

<!DOCTYPE html>
<html>
    <head>
        <title>My Webpage</title>
    </head>
    <body>
        <h1>Welcome to my page</h1>
        <p>This is a sample HTML page.</p>
    </body>
</html>
    
Commonly Used HTML Elements

Some frequently used HTML elements include:

Example of a paragraph element: <p>This is a paragraph.</p>

Example of a button element:

<button>Click Me</button>
    

Keyboard shortcut representation: Ctrl + C to copy.

Program output: File successfully saved!

Mathematical variable: The formula for area of a circle is πr².

Importance of HTML in Web Development

HTML is the foundation of web development and works alongside CSS and JavaScript to build modern websites.

HTML works with <script> and <style> for dynamic and styled pages.

Advantages of HTML
Conclusion

HTML is an essential skill for web development, providing structure for websites.