HTML

HTML (Hypertext Markup Language) is the standard markup language used for creating web pages and web applications. It describes the structure of a web page semantically and can include text, images, links, and other multimedia content. HTML elements form the building blocks of all websites.

HTML uses a system of tags and attributes to define the content and structure of web pages. Tags are used to mark up the beginning and end of elements, and attributes provide additional information about elements. HTML documents are structured hierarchically, with a nested arrangement of elements.

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 of text.</p>
        <a href="https://www.example.com">Visit Example.com</a>
    </body>
</html>

Examples of HTML Elements:

Attributes: HTML elements can have attributes that provide additional information about the element. Common attributes include id, class, src, href, alt, and title.

Semantic HTML: Semantic HTML refers to using HTML tags that convey the meaning of the content they enclose. Examples include <article>, <section>, <header>, <footer>, and <aside>. Using semantic HTML improves accessibility and SEO.