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

data-lt-noDefault

Applies to: <dfn>

Prevents the element's text content from being used as a linking term. Only the values defined in data-lt are used for linking. Useful for disambiguating two definitions that would otherwise have the same default link text.

Usage

<dfn>The Foo</dfn>
<!-- Links as "The Foo" -->

<dfn data-lt="alternative foo" data-lt-noDefault>The Foo</dfn>
<!-- Links only as "alternative foo" — "The Foo" text is ignored -->

Notes

  • Without data-lt-noDefault, having two <dfn> elements with the same text content would cause a disambiguation error
  • data-lt-noDefault lets you give a definition a unique programmatic name (via data-lt) while the display text can still match another definition

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