ARIA Landmark Region Patterns
Based on the W3C ARIA Authoring Practices for Landmark Regions
A form landmark identifies a region that contains a collection of items and objects that, as a whole, combine to create a form when no other named landmark is appropriate (e.g. main or search).
ARIA 1.2 Specification: form landmark
search landmark instead of the form landmark when the form is used for search functionality.form landmark should have a label to help users understand the purpose of the form.form landmark should be identified using aria-labelledby to visible heading element (e.g. an h2-h6) or legend element.form landmark, each should have a unique label.form landmark in an HTML document should use native host semantics:
buttoninputselecttextareaform landmark to identify a region of the page; do not use it to identify every form field.aria-labelledby reference to a visible heading (e.g. an h2-h6) or legend element.Assume the following two forms (e.g. add contact and add organization) can be independently submitted from the same web page.
<form aria-labelledby="contact">
<fieldset>
<legend id="contact">Add Contact </legend>
... form controls add contact ...
</fieldset>
</form>
...............
<form aria-labelledby="organization">
<fieldset>
<legend id="organization">Add Organization </legend>
... form controls add organization ...
</fieldset>
</form>
aria-labelledby reference to a visible heading (e.g. an h2-h6) or legend element.aria-labelledby reference to a visible heading (e.g. an h2-h6) or legend element.
<div role="form" aria-labelledby="contact">
<fieldset>
<legend id="contact">Add Contact </legend>
... form controls add contact ...
</fieldset>
</div>
...............
<div role="form" aria-labelledby="organization">
<fieldset>
<legend id="organization">Add Organization </legend>
... form controls add organization ...
</fieldset>
</div>