1. Static Component Guide
  2. Govspeak content
  3. Lists

Govspeak content example

Lists

How to call this example

<%= render "govuk_component/govspeak" {
  content: "<h2>ordered list:</h2>
    <ol>
      <li>one</li>
      <li>two</li>
      <li>three</li>
    </ol>
    <h2>unordered list:</h2>
    <ul>
      <li>one</li>
      <li>two</li>
      <li>three</li>
    </ul>
    "
} %>

How it looks

ordered list:

  1. one
  2. two
  3. three

unordered list:

  • one
  • two
  • three