使用abbr元素为缩略词提供定义____20160524


说明

该技巧的目的是使用abbr元素为缩略词提供展开或定义。 对任何缩略词来说使用abbr元素都是合适的,包含首字母缩写。当使用HTML和XHTML时,缩略词可能使用acronym元素标记。HTML4以后的版本删除了acronym元素,使用abbr元素来代替。


样例

样例1:使用abbr元素展开缩略词


效果

Sugar is commonly sold in 5 lb. bags.

Welcome to the WWW!

样例2:使用abbr元素定义缩略词


效果

Tasini et al. v.The New York Times et al. is the landmark lawsuit brought by members of the National Writers Union against ......

样例3:使用abbr元素展开缩略词


效果

The use of KISS became popular in ...

样例4:使用abbr展开首字母缩略词


效果

WWW


无障碍效果

各读屏、各浏览器的支持效果

测试人:

争渡、IE11:
永德、IE11:
NVDA、IE11:
永德、chrome:
NVDA、chrome:
NVDA、Firefox:
voiceover、chrmoe:
voiceover、Safari: