A form field that allows users to enter multiple lines of text.

Sample HTML

<label class="ds_label" for="description">Description</label>
<textarea class="ds_input" rows="3" id="description"></textarea>

We based our textarea component on the one built by GDS. Find out more about the textarea component on GOV.UK’s Design System.

Website analytics

Content of this form element would not be routinely tracked through website analytics due to the risk of gathering personally identifiable information. Interaction with the element can be tracked through a data attribute showing the the field type and field description.

The data attribute is added automatically by the Design System’s ‘tracking’ script.

Feedback, help or support

If you need any help or want to give any feedback you can e-mail us at: designsystem@gov.scot

Back to top