diff --git a/content/body/form.php b/content/body/form.php index d52186b3..1d87040d 100644 --- a/content/body/form.php +++ b/content/body/form.php @@ -89,6 +89,11 @@ "label": "Insert fieldset and legend", "highlight": "\\s*<[\/]?fieldset> ||| \\s*<legend[\\s\\S]*>[\\s\\S]*</legend>", "notes": "The legend tag must be a direct child of the fieldset tag in order for it to work across screen readers." + }, + { + "label": "Connect instructions to fieldset with aria-describedby", + "highlight": "aria-describedby", + "notes": "Most screen readers will read the instructions when the user first accesses any of the form elements via keyboard." } ] } @@ -170,6 +175,11 @@ "This ensures that what the aria-labelledby attribute points to acts as a legend for the fieldset.", "Unlike a HTML example, the label does not have to be a direct child to the group element (which acts as a fieldset)." ] + }, + { + "label": "Connect instructions to the group with aria-describedby", + "highlight": "aria-describedby", + "notes": "Most screen readers will read the instructions when the user first accesses any of the form elements via keyboard." } ] }