HTML标记语言——表格标记_HTML/Xhtml_网页制作











Year |
Opponent |
Season Record (W-L) |
1918 |
Chicago Cubs |
75-51 |
1916 |
Brooklyn Robins |
91-63 |
1915 |
Philadelphia Phillies |
101-50 |
1912 |
New York Giants |
105-47 |
起始标签后面,通常用来存放表格的标题或者表格资料的说明.
看上去,它更容易让使用者看出表格的主题,同时也能够帮助以其他方式得知网页内容的人.
让我们拿掉开头的那个段落,并加入正确的:
Boston Red Sox World Series Championships
Year |
Opponent |
Season Record (W-L) |
1918 |
Chicago Cubs |
75-51 |
1916 |
Brooklyn Robins |
91-63 |
1915 |
Philadelphia Phillies |
101-50 |
1912 |
New York Giants |
105-47 |
标签加上summary属性,进一步解释这个表格的目的和内容,摘要属性对非可视化浏览器尤为重要,这能帮助它们解说表格的内容.
以下是为示例表格加上摘要属性的代码:
Boston Red Sox World Series Championships
Year |
Opponent |
Season Record (W-L) |
1918 |
Chicago Cubs |
75-51 |
1916 |
Brooklyn Robins |
91-63 |
1915 |
Philadelphia Phillies |
101-50 |
1912 |
New York Giants |
105-47 |
Boston Red Sox World Series Championships
Year |
Opponent |
Season Record (W-L) |
1918 |
Chicago Cubs |
75-51 |
1916 |
Brooklyn Robins |
91-63 |
1915 |
Philadelphia Phillies |
101-50 |
1912 |
New York Giants |
105-47 |
Boston Red Sox World Series Championships
Year |
Opponent |
Season Record (W-L) |
1918 |
Chicago Cubs |
75-51 |
1916 |
Brooklyn Robins |
91-63 |
1915 |
Philadelphia Phillies |
101-50 |
1912 |
New York Giants |
105-47 |
Boston Red Sox World Series Championships
Year |
Opponent |
Season Record (W-L) |
1918 |
Chicago Cubs |
75-51 |
1916 |
Brooklyn Robins |
91-63 |
1915 |
Philadelphia Phillies |
101-50 |
1912 |
New York Giants |
105-47 |
Boston Red Sox World Series Championships
Year |
Opponent |
Season Record (W-L) |
1918 |
Chicago Cubs |
75-51 |
1916 |
Brooklyn Robins |
91-63 |
1915 |
Philadelphia Phillies |
101-50 |
1912 |
New York Giants |
105-47 |
...table header content...
...table footer content...
...table data row...
...table data row...
...table data row...
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
作者最新文章
-
2024-11-28 10:52:48
-
2024-11-28 10:49:00
-
2024-11-28 10:48:01
-
2024-11-28 10:47:25
-
2024-11-28 10:46:18
-
2024-11-28 10:45:42
-
2024-11-28 10:44:44
-
2024-11-28 10:43:43
-
2024-11-28 10:43:10
-
2024-11-28 10:42:13