Tag
<strong class="govuk-tag">
alpha
</strong>
{%- from "tag/macro.njk" import govukTag -%}
{{ govukTag({
text: "alpha"
}) }}
When to use this component
Use the tag component to indicate the status of something, such as an item on a task list or a phase banner.
How it works
There are 2 ways to use the tag component. You can use HTML or, if you are using Nunjucks or the GOV.UK Prototype Kit, you can use the Nunjucks macro.
<strong class="govuk-tag">
alpha
</strong>
{%- from "tag/macro.njk" import govukTag -%}
{{ govukTag({
text: "alpha"
}) }}
Help improve this page
To help make sure the Tag page is useful, relevant and up to date, you can:
- share research or feedback about the Tag component on GitHub
- propose a change to this page - read more about how to propose changes in GitHub
Need help?
If you’ve got a question about the GOV.UK Design System you can contact the team: