09
 

Lists

There are two types of list:
Unordered lists use asterisks, pluses, or hyphens as list markers.
Ordered lists use numbers followed by periods.

Click on the red points to know more. Move through the exercises by using the buttons or the dot menu at the bottom.

Click on the red points to know more. Move through the exercises by using the buttons or by swiping left or right.

* First item\n* Second item\n* Third item\n\n1. First item\n2. Second item\n3. Third item.
  • More

    There's a space after the asterisk (or plus sign or hypen).

    You can use asterisks, plus signs and hypens interchangable.

    Close
  • More

    Ordered lists start with a number followed by a period and a space.
    If you don't want this behaviour, you can escape the period:
    12\. An even number.

    Close
  • More

    You don't have to use ordered numbers in Markdown:
    1. One
    1. Two
    1. Three
    and
    5. One
    7. Two
    2. Three
    Render an ordered list.

    Close

Convert this list of facts into an unordered list.

Show generated HTML?

Convert this list into an ordered list.

Show generated HTML?

Play with the concepts you just learned!

For example:
Use formatting elements (like bold and italics) inside a list.
Add spaces around the list markers (asterisk, pluses, dashes or numbers) to see what happens.
Type "1984. A novel." What happens? How can you correct it?

See the generated HTML. Even if you don't know HTML, try to understand what's happening. Go wild!
Go to the next lesson when you're ready.

Show generated HTML?

Go to the next lesson