WebAIM - Web Accessibility In Mind

E-mail List Archives

Aria role for "fill in the blank" content

for

From: Liz Thomas
Date: Oct 6, 2021 10:03PM


Hi all,

Looking for some advise on how best to approach "fill-in-the-blank" content, for example:

The wild things gnashed their terrible______


I've used a workaround of role="math" (understanding that this is not the correct use of the role. Also to note, this is a visual representation of a blank space and not an input field)

<p>The wild things gnashed their terrible<span role="math" aria-label="insert noun/verb here">___</span></p>

Is there an appropriate role for this instance? Or a much better way of approaching it?












IMPORTANT - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Training.