Skip to main

Design System

  • Welcome
  • Colors
  • Typography
  • Spacing

CSS

  • Utilities
  • Compositions

Component Library

  • Aside
  • Audio Player
  • Authors
  • Banners
  • Block quotes
  • Brand
  • Breadcrumbs
  • Browser compatibility table
  • Button
  • Callout
  • Cards
  • Carousel
  • Code blocks
  • Compare
  • Counter
  • Details
  • Ellipsis
  • Eyebrow
  • Floating Action Button
  • Feature Card
  • Figure
  • Fixed width Image
  • Form Fields
  • Headline
  • Hero
  • Hero Image
  • Icon Button
  • Indicator
  • Labels
  • Lists
  • Numbered headers
  • Page Header
  • Pagination
  • Pill
  • Preview Pagination
  • Prose
  • Spinner
  • Stack Nav
  • Stats
  • Status List
  • Tables
  • Tabs
  • Generated table of contents
  • Toggle Switch
  • Tooltips

Lists - Component

All of these list patterns require no extra classes and style the correct semantic element.

Description list Unordered list
View full screen
Code

Source (Nunjucks)

<ol>
{% for item in data.items %}
<li>{{ item }}</li>
{% endfor %}
</ol>

Output

<ol>
<li>A standard ordered list</li>
<li>Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</li>
<li>Pellentesque Condimentum Dapibus Cursus Sit</li>
</ol>

Variants

Description list

View full screen
Code

Source (Nunjucks)

<dl>
{% for item in data.items %}
<dt>{{ item.key }}</dt>
{% for value in item.values %}
<dd>{{ value }}</dd>
{% endfor %}
<!--prettier-ignore-->
{% endfor %}
</dl>

Output

<dl>
<dt>First Term</dt>
<dd>This is the definition of the first term.</dd>
<!--prettier-ignore-->
<dt>Second Term</dt>
<dd>This is one definition of the second term.</dd>
<dd>This is another definition of the second term.</dd>
<!--prettier-ignore-->
</dl>

Unordered list

View full screen
Code

Source (Nunjucks)

<ul>
{% for item in data.items %}
<li>{{ item }}</li>
{% endfor %}
</ul>

Output

<ul>
<li>An unordered list</li>
<li>Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</li>
<li>Pellentesque Condimentum Dapibus Cursus Sit</li>
</ul>

We want to help you build beautiful, accessible, fast, and secure websites that work cross-browser, and for all of your users. This site is our home for content to help you on that journey, written by members of the Chrome team, and external experts.

Contribute

  • File a bug
  • View source

Related content

  • developer.chrome.com
  • Chrome updates
  • Case studies
  • Podcasts
  • Shows

Connect

  • Twitter
  • YouTube
  • Google Developers
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms & Privacy
  • Community Guidelines

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies.