Skip to content
Marcos Caceres edited this page Mar 27, 2026 · 4 revisions

data-link-type

Applies to: <a>

Constrains a link to match only definitions of a specific type. Mostly set automatically by the shorthand syntax — you rarely need to set this manually.

Values

Value Use for Shorthand
"dfn" Prose concept definitions [= term =]
"idl" WebIDL definitions {{ term }}
"biblio" Bibliography references [[SPEC]]
"element" HTML/SVG element names [^ element ^]

Notes

  • The [= =], {{ }}, and [[]] shorthands add data-link-type automatically — prefer shorthands over setting this attribute manually
  • When no data-link-type is set on an <a>, ReSpec infers the type from context (inside a WebIDL block → IDL; in prose → dfn)
  • See Shorthands Guide for the full shorthand syntax reference

Guides

Configuration options

W3C Configuration options

Linting rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

HTML attributes

CSS Classes

Special properties

Clone this wiki locally