The HTML abbr attribute
The HTML abbr attribute, used on the <th> element, provides a short, abbreviated label for a header cell that assistive technology can announce instead of the full heading text.
Overview
The abbr attribute gives a table header cell a short abbreviated label. It is used on the <th> element.
It works alongside the other table attributes: colspan and rowspan for spanning cells, and scope and headers for connecting data cells to their headers. These attributes are central to making data tables understandable to screen-reader users.
Syntax
<th abbr="Qty">Quantity ordered</th>
Values
| Value |
|---|
| A short string. |
Best practices
Accessibility
Screen readers may announce a header cell repeatedly while reading a column; abbr lets them use a concise label (e.g. "Qty") instead of a long heading, making large tables less tedious to navigate.