MDN self-hosted library · e01.org

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.

html
<div id="tbLabel">Email Address *</div>
<div
  role="textbox"
  contenteditable
  aria-labelledby="tblabel"
  aria-required="true"
  id="email1"></div>
html
<label for="email1">Email Address (required)</label>
<input type="email" id="email1" required />