List-Item
A list-item is a single entry in a list — a fundamental building block for organizing content, data, and interfaces. Whether used in plain text, HTML, UI design, or data structures, list-items help present information clearly and predictably.
Types and contexts
- Plain text lists: Simple lines preceded by bullets or numbers.
- HTML: Represented with the
- element inside
- (unordered) or
- UI components: Interactive items in
- (ordered).
Best practices for writing list-items
- Keep items concise. Short phrases are easier to scan.
- Use parallel structure. Start each item with the same part of speech (e.g., verbs).
- Limit length. If an item needs detail, consider nesting a sublist.
- Prioritize order when needed. Use numbered lists for steps or rankings.
- Make actions clear. For interactive items, indicate affordance (e.g., “Click to edit”).
Accessibility tips
- Ensure proper semantic markup (use
- ).
- Provide keyboard focus and clear visual states for interactive items.
- Use ARIA roles when building custom list components.
Example (HTML)
html
<ul><li>Gather materials</li> <li>Set up workspace</li> <li>Complete the task</li></ul>
When to use list-items
- Presenting steps, options, features, or grouped data.
- Breaking long content into scannable chunks.
- Building navigable UI elements.
List-items are versatile and essential for clear communication; writing them well improves readability and usability.
Leave a Reply