Menu
Coddy logo textTech

Recap - Layout

Part of the Fundamentals section of Coddy's HTML journey. Lesson 29 of 60.

challenge icon

Challenge

Easy

Create an HTML document that includes all the layout elements we've learned so far:

  1. A <header> with a main heading (<h1>) that says "My Website" and a navigation (<nav>) with links to "Home", "About", and “Contact”. (in an unordered list)
  2. A <main> section with a <div> that contains a paragraph (<p>) with the text "This is the main content area.". Inside the paragraph, use a <span> tag to wrap the word "main".
  3. Inside the main section, a <section> with a heading (<h2>) that says "About Us" and an <article> with a heading (<h3>) that says "Our Mission" and a paragraph (<p>) with some dummy text.
  4. A <footer> with a paragraph (<p>) that says "Copyright 2024 My Website".

Try it yourself

<!DOCTYPE html>
<html>
    <body>
        <!-- Write code here -->
    </body>
</html>

All lessons in Fundamentals

Practice on your own: Web playground