HTML5 <address> 标签

定义和用法

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

HTML 4.01 与 HTML5 之间的差异

NONE

例子:

<address>
此文档的作者:<a href="mailto:[email protected]">Bill Gates</a>
</address>

提示和注释:

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

属性

标准属性

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, 
lang, ref, registrationmark, tabindex, template, title

如需完整的描述,请访 HTML5 中标准属性

事件属性

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

如需完整的描述,请访 HTML5 中事件属性

TIY 实例

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

Copyright © 2012-2015 BETWAY官网网 版权所有