目录搜索
文字
分享

HTML 5 <address> 标签

定义和用法

<address> 标签为文档或 section 定义联系信息。

HTML 4.01 与 HTML 5 之间的差异

NONE

例子:

1

2

3

<address>

此文档的作者:<a href="mailto:bill@microsoft.com">Bill Gates</a>

</address>

提示和注释:

注释:address 通常被呈现为斜体。大多数浏览器会在 address 元素的前后添加一个换行符,不过如果有必要的话,您需要在地址文本的内容添加额外的换行符。

属性

标准属性

1

2

class, contenteditable, contextmenu, dir, draggable, id, irrelevant,

lang, ref, registrationmark, tabindex, template, title

如需完整的描述,请访 HTML 5 中标准属性。

事件属性

1

2

3

4

5

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu,

ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover,

ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup,

onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout,

onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload

如需完整的描述,请访 HTML 5 中事件属性。

TIY 实例

缩写和首字母缩写
此例演示如何实现缩写或首字母缩写。