1. Static Component Guide
  2. Govspeak content
  3. Heading levels

Govspeak content example

Heading levels

How to call this example

<%= render "govuk_component/govspeak" {
  content: "<h2>This is a h2 title</h2>
    <h3>This is a h3 title</h3>
    <h4>This is a h4 title</h4>
    <h5>This is a h5 title</h5>
    <h6>This is a h6 title</h6>
    "
} %>

How it looks

This is a h2 title

This is a h3 title

This is a h4 title

This is a h5 title
This is a h6 title