欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

HTML 5 <table> 標(biāo)簽

定義和用法

<table> 標(biāo)簽可定義表格。在 <table> 標(biāo)簽內(nèi)部,你可以放置表格的標(biāo)題、表格行、表格列、表格單元以及其他的表格。

HTML 4.01 與 HTML 5 之間的差異

在 HTML 4.01 中,不贊成使用 "align" 和 "bgcolor" 屬性。

在 HTML 5 中,不支持 <table> 標(biāo)簽的任何屬性。

例子

<table>
<tr>
<td>Cell A</td>
<td>Cell B</td>
</tr>
</table>

屬性

標(biāo)準(zhǔn)屬性

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

如需完整的描述,請訪問 HTML 5 中標(biāo)準(zhǔn)屬性。

事件屬性

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 實(shí)例

表格
這個例子演示如何在 HTML 文檔中創(chuàng)建表格。
表格中的標(biāo)題(Headings)
本例演示如何顯示表格標(biāo)題。
空單元格
本例展示如何使用 "&nbsp;" 處理沒有內(nèi)容的單元格。
帶有標(biāo)題的表格
本例演示一個帶標(biāo)題 (caption) 的表格
跨行或跨列的表格單元格
本例演示如何定義跨行或跨列的表格單元格。
表格內(nèi)的標(biāo)簽
本例演示如何在不同的元素內(nèi)顯示元素。