13.11.2025 | Lothar Ferreira Neumann
You can add headlines to a webform using the code below. To get to the source section, navigate to the form you want to alter, click on build and then on the source tab like in the screenshot.
This is just a short example on how to add a headline.
webform_headline.yml
personal_data:
'#type': html_tag
'#tag': h3
'#value': 'Personal data'
It will look something like this: