BananaMaster

5 How Nesting Works in HTML and What Are width, height and background (HTML and CSS, Front End)

If you forgot something, click to go to the lesson

📘 Practical Tasks: Nested div Blocks

For each task create separate classes in style.css and apply them to the correct tags.

📌 File structure: index.html + style.css

✏️ Task 1

Recreate this block:

✏️ Task 2

Recreate these two blocks:

✏️ Task 3

Recreate the nested blocks:

✏️ Task 4

Recreate three nested blocks:

✏️ Task 5

Recreate a block with two child blocks inside:

✏️ Task 6

Recreate blocks of different heights in a column:

✏️ Task 7

Recreate four levels of nesting:

✏️ Task 8

Recreate a block with two columns inside:

✏️ Task 9

Recreate a block with percentage width:

✏️ Task 10 — 🔥 Bonus

Create your own! Make at least 3 nested blocks with the classes .box-outer, .box-middle, .box-inner.

📌 Important:
Each class is written separately in style.css.
Use HTML and CSS only.
Practice the properties: width, height, background.