| title | Lists |
|---|---|
| syntax-id | lists |
| api | no |
You can organize items into ordered and unordered lists.
{% include syntax.html type="basic-sub" syntax-id="ordered-lists" %}
{% include syntax.html type="basic-sub" syntax-id="unordered-lists" %}
To add another element in a list while preserving the continuity of the list, indent the element four spaces or one tab, as shown in the following examples.
* This is the first list item.
* Here's the second list item.
I need to add another paragraph below the second list item.
* And here's the third list item.
The rendered output looks like this:
-
This is the first list item.
-
Here's the second list item.
I need to add another paragraph below the second list item.
-
And here's the third list item.
* This is the first list item.
* Here's the second list item.
> A blockquote would look great below the second list item.
* And here's the third list item.
The rendered output looks like this:
-
This is the first list item.
-
Here's the second list item.
A blockquote would look great below the second list item.
-
And here's the third list item.
Code blocks are normally indented four spaces or one tab. When they're in a list, indent them eight spaces or two tabs.
1. Open the file.
2. Find the following code block on line 21:
<html>
<head>
<title>Test</title>
</head>
3. Update the title to match the name of your website.
The rendered output looks like this:
-
Open the file.
-
Find the following code block on line 21:
<html> <head> <title>Test</title> </head> -
Update the title to match the name of your website.
1. Open the file containing the Linux mascot.
2. Marvel at its beauty.

3. Close the file.
The rendered output looks like this:
-
Open the file containing the Linux mascot.
-
Marvel at its beauty.
-
Close the file.
You can nest an unordered list in an ordered list, or vice versa.
1. First item
2. Second item
3. Third item
- Indented item
- Indented item
4. Fourth item
The rendered output looks like this:
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item