Skip to content

data abbr

Sid Vishnoi edited this page Jun 17, 2020 · 5 revisions

data-abbr

The data-abbr can be used on dfn elements that are used as abbreviations throughout your spec.

You can either set the abbreviation explicitly, or ReSpec can figure it out for you.

Example

<!-- these two are the same --> 
<dfn data-abbr>user agent</dfn> 
<dfn data-abbr="">user agent</dfn> 

Becomes: <dfn>user agent</dfn> (<abbr title="user agent">UA</abbr>). 

<!-- Alternatively -->
<dfn data-abbr="PoS">point of sale</dfn>

Becomes: <dfn>point of sale</dfn> (<abbr title="point of sale">PoS</abbr>)

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally