Sub topic 7
Use Lists for Steps, Options, and Requirements
Assume you already know basic HTML, including headings, paragraphs, and list elements. This chapter focuses on choosing the right list type and marking it up so readers and retrieval-based AI answer systems can understand the relationship between items.
When should you use an ordered list?
Use an ordered list when the sequence matters. An ordered list uses <ol> and <li> elements. Typical examples include procedures, installation steps, ranked instructions, and workflows.
Use one action per list item. Avoid placing several unrelated actions in one item because a system may treat the whole item as one indivisible instruction.
<article>
<h1>Reset a wireless router</h1>
<section>
<h2>How do you reset the router?</h2>
<p>Restart the router first. A factory reset is needed only when restarting does not fix the problem.</p>
<ol>
<li>Unplug the router's power cable.</li>
<li>Wait 30 seconds.</li>
<li>Reconnect the power cable.</li>
<li>Wait until the status light is steady.</li>
<li>Test the internet connection.</li>
</ol>
</section>
</article>The list is useful because the order is explicit. A reader can follow it line by line, and an answer system can more easily identify the procedure as a sequence.
When should you use an unordered list?
Use an unordered list when the items are peers and their order does not matter. An unordered list uses <ul> and <li> elements. Use it for options, requirements, features, ingredients, or related resources.
<h2>What do you need before resetting the router?</h2>
<p>Prepare these items before you begin:</p>
<ul>
<li>The router's power cable</li>
<li>Access to a power outlet</li>
<li>The network name and password</li>
<li>A device that can connect to the network</li>
</ul>The introductory paragraph gives the list a clear purpose. Each item is short and specific. Do not use numbered items for requirements merely because numbers make a list look tidy.
How do you make list items self-contained?
Give each list enough context to make sense when it is separated from the surrounding page. Retrieval systems often work with passages rather than the full document. A vague item such as “Check it” loses meaning when extracted alone.
Prefer:
- “Check that the router's status light is steady.”
- “Save the new network password in your password manager.”
- “Contact your internet provider if the connection remains offline.”
Avoid:
- “Check it.”
- “Save this.”
- “Contact them.”
Repeat a noun when it prevents ambiguity. Clear repetition is better than a short item that requires the reader to search backward for a pronoun's meaning.
How should lists represent nested information?
Use a nested list when one item contains related subitems. Keep nesting shallow. A deeply nested list is harder to scan and harder to quote accurately.
<h2>Which connection should you test?</h2>
<ul>
<li>
Test a wired connection:
<ul>
<li>Connect a computer with an Ethernet cable.</li>
<li>Open a known website.</li>
</ul>
</li>
<li>
Test a wireless connection:
<ul>
<li>Join the wireless network.</li>
<li>Open the same website.</li>
</ul>
</li>
</ul>The parent item names the category. The nested items describe actions within that category. If every item needs a long explanation, use separate sections with headings instead of forcing the content into a list.
How do you audit a list?
Check each list against these questions:
- Does the list have a clear introductory sentence or heading?
- Is the order meaningful?
- If order matters, did you use
<ol>? - If order does not matter, did you use
<ul>? - Does every item belong to the same category?
- Can each item be understood without an unexplained pronoun?
- Does each ordered item contain one main step?
- Would a paragraph or table communicate the information more clearly?
Exercise
You are documenting three browser requirements and four installation steps. Which list element should you use for each group, and why?
Show answer
Use a <ul> for the browser requirements because their order does not matter. Use an <ol> for the installation steps because the reader must complete them in sequence.