Table markup

Tag Description
<table> Wrapping element for displaying data in a tabular format
<thead> Container element for table header rows (<tr>) to label table columns
<tbody> Container element for table rows (<tr>) in the body of the table
<tr> Container element for a set of table cells (<td> or <th>) that appears on a single row
<td> Default table cell
<th> Special table cell for column (or row, depending on scope and placement) labels
Must be used within a <thead>
<caption> Description or summary of what the table holds, especially useful for screen readers
<table>
  <thead>
    <tr>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td></td>
      <td></td>
    </tr>
  </tbody>
</table>

Table options

Name Class Description
Default None No styles, just columns and rows
Basic .table Only horizontal lines between rows
Bordered .table-bordered Rounds corners and adds outer border
Zebra-stripe .table-striped Adds light gray background color to odd rows (1, 3, 5, etc)
Condensed .table-condensed Cuts vertical padding in half, from 8px to 4px, within all td and th elements

Example tables

1. Default table styles

Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the .table class is required.

<table class="table">
  
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

2. Striped table

Get a little fancy with your tables by adding zebra-striping—just add the .table-striped class.

Note: Striped tables use the :nth-child CSS selector and is not available in IE7-IE8.

<table class="table table-striped">
  
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

3. Bordered table

Add borders around the entire table and rounded corners for aesthetic purposes.

<table class="table table-bordered">
  
</table>
# First Name Last Name Username
1 Mark Otto @mdo
Mark Otto @TwBootstrap
2 Jacob Thornton @fat
3 Larry the Bird @twitter

4. Condensed table

Make your tables more compact by adding the .table-condensed class to cut table cell padding in half (from 8px to 4px).

<table class="table table-condensed">
  
</table>
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter

5. Combine them all!

Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.

<table class="table table-striped table-bordered table-condensed">
  ...
</table>
Full name
# First Name Last Name Username
1 Mark Otto @mdo
2 Jacob Thornton @fat
3 Larry the Bird @twitter
友情链接:大树教  |中考成绩查询网  |Record  |环申包装  |深圳注  |去哪儿 - 2015校园招聘  |2012伦敦奥运会_搜狐体育  |2012伦敦奥运会_搜狐体育  |耒阳社  |山东省宏太工业有限公司德博机械加工厂  |恩施欣欣旅游网  |遵义医学院珠海校区  |安阳市政府网站  |蒙娜  |广州市勃能自动化设备有限公司  |深圳注  |佛山市顺德区爱邦物流有限公司  |大树教  |众筹家  |广州市勃能自动化设备有限公司  |东宝生物  |丰顺路  |中考成绩查询网  |佛山市顺德区爱邦物流有限公司  |巩义市金龙恒吉机械制造有限公司  |山东省宏太工业有限公司德博机械加工厂  |鸿茅  |萧山雅马哈乐器有限公司  |深圳注  |金峰论  |狂奔的蜗牛(二店)  |成都市人民政府政务服务中心  |Record  |深圳市 贝斯泰尔 科技有限公司  |懒财主  |Record  |中国海事服务网CNSS  |爱财  |恩施欣欣旅游网  |安阳市政府网站  |广州市勃能自动化设备有限公司  |包头人  |中国舞钢论坛  |宏达小  |金峰论  |深圳注  |中国海事服务网CNSS  |缙云县仪表机床厂  |耒阳社  |安阳市政府网站  |蒙娜  |中考成绩查询网  |大树教  |去哪儿 - 2015校园招聘  |遵义医学院珠海校区  |蒙娜  |雀巢中国有限公司北京办事处  |重庆创鸿门业有限公司  |华宝兴  |山东七运集团  |懒财主  |黄页51网  |新疆财  |去哪儿 - 2015校园招聘  |深圳注  |耒阳社  |重庆创鸿门业有限公司  |广州市勃能自动化设备有限公司  |深圳市 贝斯泰尔 科技有限公司  |环申包装  |真笔字网名设计器  |中考成绩查询网  |北京立通恒达发展有限公司  |华宝兴  |广东工贸职业技术学院 民办南华工商学院西院  |山东七运集团  |北京立通恒达发展有限公司  |游大大  |大树教  |Record  |   网站地图