List

Lists are a way to represent a collection of items within the body of an Instant Article.

Unordered and ordered lists are specified using the standard HTML <ul> and <ol> elements, respectively. Items on the list are specifed using the standard <li> element.

Options

Name Description Definition

Items

The individual content items that comprise this list.

Specify each list item using text content wrapped in a <li> element. Only non-blank text or a single container element, such as a <p> tag, are supported.

Ordered

Specifies whether your list is ordered or not.

Use <ol> to specify an ordered list and <ul> to specify an unordered list.

Examples

Unordered list

To include an unordered list in an Instant Article, use the <ul> element to wrap the items in the list, each designated with the <li> tag.

<ul>
  <li>Dog</li>
  <li>Cat</li>
  <li>Fox</li>
</ul>

Ordered list

To include an ordered list in an Instant Article, use the <ol> element to wrap the items in the list, each designated with the <li> tag.

<ol>
  <li>Groceries</li>
  <li>School</li>
  <li>Sleep</li>
</ol>