UNIT 1 • STAGE 3 OF 7 • NORTH DAKOTA
Add detail to your nations by nesting HTML inside HTML
Your code editor starts with everything from Stage 2 — both <ul> lists plus your Quick Facts <ol>. Take a moment to look at the preview.
In this stage, we'll learn how to put HTML inside other HTML — a technique called nesting.
Think of nesting like folders on your computer. A folder can contain other folders. HTML works the same way — elements can live inside other elements.
Nesting means placing one HTML element inside another. You've already done this — your <li> tags live inside <ul> tags. That's nesting!
We can go even deeper — put a <ul> inside a <li> to add sub-details under each nation.
Find your Sioux and Dakota <ul> in the editor. We'll update it to include the county location as a nested list under each nation.
Notice how each county shows up as a sub-bullet, indented under the nation name.
Now update the second list the same way.
You've just built a well-organized, hierarchical webpage. The nesting mirrors how information is actually connected:
Good HTML structure respects those real-world relationships.
Well-structured HTML helps people who use screen readers — software that reads web pages aloud. When you nest properly, you're making the web more accessible for everyone.
Try adding another detail to one of your nested lists. Ideas:
<li> in the sub-listYou now know how to nest HTML elements to create rich, organized pages. In Stage 4, we'll use more heading levels (h3, h4) to build a complete page hierarchy!