Loading chapter...
HTML lists group related items together (`
Click Try it Yourself » to test custom lists, menu toolbars, block/inline spans, and native details accordions in the playground.
HTML provides 4 list structures tailored for different content ordering needs:
<ul>
<ol>
type="1|A|a|I|i"
start
reversed
<dl>
<dt>
<dd>
<menu>
Every HTML element has a default display value depending on its type:
<div>
<p>
<h1>-<h6>
<form>
<span>
<a>
<strong>
<em>
<img>
The <details> element creates an interactive disclosure widget that users can toggle open and closed. The <summary> element specifies a visible heading for the details widget:
<details>
<summary>
open
details[open]
Build a Custom Syllabus & Interactive FAQ Component incorporating an ordered study plan list, description list glossary, block <div> card, and native <details> accordion:
You must be logged in to leave a review.