Inset text
Sample HTML for Inset text example
<div class="ds_inset-text">
<div class="ds_inset-text__text">
You may be able to <a href="#">apply for free school meals</a> at the same time as you apply for the clothing grant.
</div>
</div>
We based our inset text component on the one built by GDS. Find out more about the inset text component on GOV.UK’s Design System.
Live example
Apply for a new Blue Badge (mygov.scot)
Website analytics
To understand user behaviour, clicks on links in inset text blocks can be tracked through:
- the selected URL (also known as the 'click URL')
- the selected text (also known as 'click text')
- a data attribute showing the interaction
The data attribute is added automatically by the Design System’s ‘tracking’ script.
Tracking attributes
Links in inset text components get a data-navigation attribute of inset-link.
<div class="ds_inset-text">
<div class="ds_inset-text__text">
You may be able to <a data-navigation="inset-link" href="#">apply for free school meals</a> at the same time as you apply for the clothing grant.
</div>
</div>