HTML 5 structure

The basic structure of an HTML5 page utilizes semantic elements to provide meaning and organization to the document's content. This structure is designed for improved readability, accessibility, and SEO.

Here are the key components of an HTML5 page structure:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML 5 Structure</title>
    <link rel="stylesheet" href="styles.css">
    <script src="script.js" defer></script>
</head>

<body>

    <header>
        <h1>Welcome to My HTML5 Page</h1>
        <nav>
            <ul>
                <li><a href="#home">Home</a></li>
                <li><a href="#about">About</a></li>
                <li><a href="#contact">Contact</a></li>
            </ul>
        </nav>
    </header>

    <main>
        <article>
            <h2>Article Title</h2>
            <p>This is a paragraph within an article. It contains information about the topic discussed in the article.</p>
        </article>
        <section>
            <h2>Section Title</h2>
            <p>This is a paragraph within a section. It groups related content together.</p>
        </section>
        <aside> 
            <h2>Related Links</h2>
            <p>This is an aside that contains links or information related to the main content.</p>
        </aside>
    </main>
    
    <footer>
        <p>&copy; 2025 My Website. All rights reserved.</p>
        <p>Contact us at <a href="mailto:support@example.com">support@example.com</a></p>
    </footer>
</body>

</html>