Task 6: Divs and Layout
Task description: Use div elements to create a simple layout structure.
What you must include
- At least two
<div>elements - At least one div should have a class attribute
- Use a nested layout (a div inside another div)
- Include an
<h1>heading with text
Bonus ideas: Add semantic layout elements and try multiple class names on one element.
Example topic
You could create a header section, a content area, or a sidebar layout.
Instructions
- Open your HTML file in your code editor.
- Write your code using div elements with classes.
- Copy your HTML code.
- Paste it into the box below.
- Click Check My Code.
- Fix any errors and try again.
Paste your code below
Your results will appear after you click the button. Bonus checks unlock after all required checks pass.