# Nesting

*noun*

say it: **“NEST-ing”** **/ˈnɛstɪŋ/**

Putting one HTML element inside another, closing the inner one before the outer one, like boxes packed inside boxes.

## What is **Nesting**?

**Nesting** — Placing one HTML element inside another element.

## In a sentence

- “The songs only show as a list because of **nesting**: each li sits inside the ol.”
- “Thanks to **nesting**, the Drinks entry on the café menu holds its own smaller list of coffees and teas.”

Level: Novice · [More HTML terms at this level](https://www.ask-codey.com/glossary?category=html&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/nesting
