IFE百度前端技术学院4/25/2018(2)

table:

table 元素

  • 用来表示超过一维的数据

caption 元素

  • 表示所处的 table 的标题

当所处的 table 是外部 figure 元素的唯一子元素,应首选 figcaption

tbodytheadtfoot 元素

  • 均为一组表格行
  • thead 表示列头 (通常为列标题,单元格用 th 元素)
  • tfoot 表示列脚 (通常为列数据汇总)

colcolgrouptr 元素

列,列组,行

tdth 元素

  • td - 数据单元格
  • th - 标题单元格

th 的 scope 属性表示标题对应的数据范围

table scope diagram

参考文档

  1. HTML 4.01 Specification, W3C.
  2. HTML5 Editor's Draft, W3C.
  3. MetaExtensions, WHATWG Wiki.
  4. Microformats Wiki, Microformats community.
  5. HTML Microdata Editor's Draft, W3C.
  6. Semantics in HTML 5, A List Apart.
  7. Semantics - Dive Into HTML5, Dive Into HTML5.
  8. schemas.org.
  9. HTML5 Doctor.

猜你喜欢

转载自www.cnblogs.com/xxh-2014/p/8945122.html