<div id="tbLabel">Email Address *</div>
<div
role="textbox"
contenteditable
aria-labelledby="tblabel"
aria-required="true"
id="email1"></div>ARIA: aria-required attribute / notebook
ARIA: aria-required attribute
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<label for="email1">Email Address (required)</label>
<input type="email" id="email1" required />