IDREFs: what they are and how to use them

Graphic labeled “HTMLhell” with a circular portrait surrounded by the words div, role, table, and span, and the headline “IDREFs: what they are and how to use them”.

Kilian Valkhof explains how attributes like for, form, and list create explicit relationships between HTML elements and how ARIA IDREFs improve accessibility by linking names, controls, and structures. He highlights the importance of unique, existing IDs and testing across browsers and assistive technologies.

htmhell.dev/adventcalendar/2025/5