data link type - speced/respec GitHub Wiki
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](/speced/respec/wiki/SPEC) |
"element" |
HTML/SVG element names | [^ element ^] |
Notes
- The
[= =],{{ }}, and[](/speced/respec/wiki/)shorthands adddata-link-typeautomatically — prefer shorthands over setting this attribute manually - When no
data-link-typeis 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