<?xml version="1.0" encoding="utf-8"?>

The item tag <li>

The item tag <li>

There are several ways to organize lists with HTML. The most common are numbered or bulleted lists. A list as a component consists of two main elements: the tag that identifies the type of list and tags that define the items it contains. The relationship between these elements is called nesting. The parent tag contains children tags, similar to how a box of assorted chocolate contains different chocolate pieces. In this case, we mark out chocolates with the item tag <li>, which is nested inside the list type tag <ol> or <ul>.

Improve your UX & Product skills with interactive courses that actually work