Task Lists / Checkboxes
Interactive checkboxes (GFM)
Markdown Source
- [ ] Unchecked - [x] Checked - [X] Also checked
Rendered HTML Output
<ul><li><input type="checkbox" disabled /> Unchecked</li> <li><input type="checkbox" checked disabled /> Checked</li> <li><input type="checkbox" checked disabled /> Also checked</li></ul>
Explanation
GFM extension: - [ ] for unchecked, - [x] or - [X] for checked. Renders as interactive checkboxes in GitHub, static in some other renderers.
Tips & Common Mistakes
- Requires GFM. The space inside [ ] is required for unchecked. X is case-insensitive for checked.
Related Markdown Examples
Try It
Markdown Preview Tool →All Examples
Markdown Tables with AlignmentImages with Alt TextFenced Code Blocks with Syntax HighlightingLinks (Inline, Reference, Auto)Headings H1–H6Bold, Italic, StrikethroughOrdered and Unordered ListsBlock QuotesHorizontal RulesFootnotesEmoji ShortcodesNested ListsEscaping Special CharactersDefinition Lists