Change Heading Levels
A SurveyJS form or survey is rendered using standard HTML elements: <form>
, <span>
, <input>
, etc. To render question, panel, page, and survey titles, the form uses <div>
elements with specified role
attributes, which improves accessibility and enables screen readers to identify the elements correctly. As an alternative, survey element titles can be rendered using section headings (<h1>
-<h6>
). Headings help you better structure an HTML document and are used by search engines to understand the hierarchy of the web page content. This example demonstrates how to enable them in your survey. Read more...