An unordered list is a way to present a group of related items without implying any order or priority. Key points:
- Use: for collections where sequence doesn’t matter (features, ingredients, options).
- Format: typically shown as bullet points (•, –, or similar).
- HTML: created with the
- element containing
- items.
- Markdown: created with lines starting with -, , or + followed by a space.
- Accessibility: use semantic markup (
- /
- ) so screen readers announce list structure; include meaningful list item text.
- Styling: bullets, spacing, and indentation can be adjusted via CSS (e.g., list-style-type, margin, padding).
- Nested lists: place a new
- inside an
- for sub-items; keep nesting shallow for clarity
- When not to use: avoid for ordered steps (use ordered lists) or for layout-only purposes (use CSS instead).
If you want examples in HTML, Markdown, or styled CSS, tell me which.*
Leave a Reply