Linen apron
Cotton straps, one size.
Attributes and roles that look alike but behave differently, side by side, and which to use.
| Name | On screen | Keyboard can reach it | Screen readers read it |
|---|---|---|---|
hidden | No | No | No |
inert | Yes | No | No |
aria-hidden="true" | Yes | Yes, if it is focusable: never do this | No |
Payment Linen tea towel, 12.00
Free delivery
hiddeninertaria-hidden="true"| Name | Removes | Content still read |
|---|---|---|
role="none" | The element’s role | Yes |
role="presentation" | The element’s role | Yes |
aria-hidden="true" | The element and everything in it | No |
alt="" | The image | Nothing to read |
| Linen tea towel | 12.00 |
| Linen napkin | 6.00 |
4.5 out of 5
role="none"role="presentation"role="none", under its older name.aria-hidden="true"alt=""| Name | Gives | Text comes from | Visible |
|---|---|---|---|
<label> | Name | Its own text | Yes |
aria-labelledby | Name | Other elements, by id | Usually |
aria-label | Name | The attribute | No |
aria-describedby | Description | Other elements, by id | Usually |
title | Name only when nothing else does | The attribute | Only on mouse hover |
Delivery address
<label>aria-labelledbyaria-labelaria-describedbytitle<iframe>. Elsewhere, don’t rely on it.| Name | Politeness | Read on a change |
|---|---|---|
role="status" | Polite: waits | The whole message: aria-atomic="true" is built in |
role="alert" | Assertive: may interrupt | The whole message: aria-atomic="true" is built in |
aria-live="polite" | Polite: waits | Only what changed, unless you add aria-atomic="true" |
aria-live="assertive" | Assertive: may interrupt | Only what changed, unless you add aria-atomic="true" |
role="log" | Polite: waits | New entries |
role="timer" | Off | Nothing |
3 left in stock
Offer ends in 4:59
role="status"role="alert"aria-live="polite"aria-live="assertive"role="alert".role="log"role="timer"| Name | Goes on | Tells people |
|---|---|---|
aria-pressed | A button | A toggle is on or off |
aria-expanded | The button that shows and hides content | What it controls is open or closed |
aria-checked | Checkbox, radio, switch | It is checked, or on |
aria-selected | Tab, option, row, cell | It is the chosen one in its set |
aria-current | Any element | It is where you are now |
Linen tea towel
Ships in 2 to 3 days.
aria-pressedaria-expandedaria-checkedaria-selectedaria-current| Name | Modal | Focus moves in | Escape closes it | What you build |
|---|---|---|---|---|
<dialog> with showModal() | Yes | Yes | Yes | Little: a name and a close button |
role="dialog" | Only if you make it so | Only if you move it | Only if you script it | All of it |
role="alertdialog" | Only if you make it so | Only if you move it | Only if you script it | All of it, unless on <dialog> |
popover | No | No | Yes, for popover="auto" | Little |
Delivery address 12 Mill Lane, Leeds
Chat with us
<dialog> with showModal()role="dialog"<dialog> can’t be used.role="alertdialog"popoverGuides that decide between these
| Name | Free text allowed | What you build |
|---|---|---|
<select> | No | Nothing |
<datalist> | Yes | Nothing, but it can’t be styled |
role="listbox" | No | Keys, focus and states |
role="combobox" | If it is editable | Keys, the popup and states |
<select><datalist>role="listbox"<select> can’t be.role="combobox"| Name | Browser blocks submission | Announced as required |
|---|---|---|
required | Yes | Yes |
aria-required="true" | No | Yes |
requiredaria-required="true"Guides that decide between these
| Name | Landmark |
|---|---|
<main> | Yes |
<aside> | Yes, at page level |
<section> | Only with a name |
<article> | No |
Linen tea towel
50 by 70 cm, in natural linen.
Reviews
4.5 out of 5, from 12 reviews.
Linen apron
Cotton straps, one size.
Guides that decide between these
| Name | Shows | Without a value |
|---|---|---|
<progress> | How far a task has got | Something is happening |
<meter> | A measurement in a known range | Not allowed |
Photo of your tea towel
<progress><meter>Guides that decide between these
Every name links to its entry in the HTML and ARIA reference, with an example and the guides that use it.