2. What are the 2 main components of an HTML document? What is the purpose of each? code example

Example: html body structure

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

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Code Breaker</title>
    <link rel="stylesheet" href="style.css">
</head>

<body>
    <header>
        <h1>Give A Like if you see this heading</h1>
    </header>
    <nav>
        <ul>
            <li>Wrote it simpler to easily delete.</li>
            <li>Home</li>
            <li>Services</li>
            <li>About Us</li>
            <li>Contact</li>
        </ul>
    </nav>
    <section>
        Havn't you liked this answer yet!
    </section>
    <footer>
        Copyright &copy; 2020-2030
    </footer>
</body>

</html>

Tags:

Html Example