Govspeak content example

Ordered lists types

Govspeak/markdown does not generate HTML with type and start attributes, however we still provide support for them as some advanced users write HTML directly to achieve the list formatting.

How it looks (preview)

Lowercase alphabetical list

  1. one
  2. two

Uppercase alphabetical list

  1. one
  2. two

Lowercase Roman numeral list

  1. one
  2. two

Uppercase Roman numberal list

  1. one
  2. two

Numerical list starting at 3

  1. three
  2. four

Lowercase alphabetical list, starting at 3

  1. three
  2. four

How to call this example

<%= render "govuk_publishing_components/components/govspeak", {
} do %>
  <h2>Lowercase alphabetical list</h2>
<ol type="a">
  <li>one</li>
  <li>two</li>
</ol>

<h2>Uppercase alphabetical list</h2>
<ol type="A">
  <li>one</li>
  <li>two</li>
</ol>

<h2>Lowercase Roman numeral list</h2>
<ol type="i">
  <li>one</li>
  <li>two</li>
</ol>

<h2>Uppercase Roman numberal list</h2>
<ol type="I">
  <li>one</li>
  <li>two</li>
</ol>

<h2>Numerical list starting at 3</h2>
<ol start="3">
  <li>three</li>
  <li>four</li>
</ol>

<h2>Lowercase alphabetical list, starting at 3</h2>
<ol type="a" start="3">
  <li>three</li>
  <li>four</li>
</ol>
<% end %>