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
友情链接:安沃驰气动贸易(上海)有限公司  |北京润元装饰  |梁山天鸿车辆有限公司  |商盾网  |东莞市汇远塑胶原料有限公司  |安乡新闻网  |我爱广告任务网  |北京耐威时代科技有限公司(西安销售)  |铜陵教  |完美中国日用品有限公司  |广州市一美金属分析服务有限公司  |潍坊一能机械设备有限公司  |深圳市米立工业设计有限公司  |牛视网  |EasyVOA   |加美润  |我爱广告任务网  |永州  |永州  |中国文物网  |上海科导超声仪器有限公司  |湖北幻彩红石业有限公司  |上海科导超声仪器有限公司  |商盾网  |绵阳师范学院教务网络管理系统  |恒大影视制作有限责任公司  |金地集团  |北京语言大学  |东莞市汇远塑胶原料有限公司  |山东奥博环保科技有限公司  |小面侠  |嘉逊广告  |豆豆小  |北京语言大学  |成都金金雁食品有限公司  |深圳市米立工业设计有限公司  |小面侠  |无锡柯维尔涂装有限公司  |山东大学医学院  |永州  |安沃驰气动贸易(上海)有限公司  |山东大学医学院  |EasyVOA   |文学乐  |上海宣明艺术品发展有限公司  |金地集团  |豆豆小  |北京耐威时代科技有限公司(西安销售)  |变宝网  |上海华杰自动 化设备有限公司  |宙大化工贸易有限公司  |完美中国日用品有限公司  |爱历史   |金地集团  |皮卡  |上海华杰自动 化设备有限公司  |12530手机彩铃网站  |文学乐  |我爱广告任务网  |湖北幻彩红石业有限公司  |金地集团  |嘉逊广告  |爱历史   |铜陵教  |梁山天鸿车辆有限公司  |中央司法警官学院  |豆豆小  |高测股份  |变宝网  |深圳市米立工业设计有限公司  |宙大化工贸易有限公司  |完美中国日用品有限公司  |绵阳师范学院教务网络管理系统  |牛视网  |深圳市米立工业设计有限公司  |绵阳师范学院教务网络管理系统  |绵阳师范学院教务网络管理系统  |小面侠  |豆豆小  |北京语言大学  |   网站地图