List-item
A list-item is an individual element within a list structure. It represents a single entry or unit of information and is used to organize content into readable, related groups.
Usage contexts
- HTML/CSS: Represented by the
- tag inside
- (unordered list) or
Key properties
- Content: Text, inline elements, or nested lists.
- Markers: Bullets, numbers, or custom icons.
- Nesting: Can contain child lists for hierarchical structure.
- Accessibility: Should use semantic list markup; assistive tech announces list counts and items.
Best practices
- Keep items brief and parallel in grammar.
- Use nesting sparingly for clarity.
- Ensure keyboard and screen-reader accessibility.
- Use consistent markers and indentation.
Leave a Reply