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
 中国体育彩票36选7开奖结果 www.30by.cn <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
  • “交警碰瓷执法”不该是事件真相 2019-07-16
  • 2017年度国家社科基金基础类重大项目结项成果概述 2019-07-16
  • 今年民歌节预计将有8000人前往 周边停车泊位有限 2019-07-13
  • 安徽去年扶贫开发成效考核全国第三 较上年度提高3个位次 2019-07-13
  • 为峰会喝彩 为市民点赞 为青岛自豪 2019-07-05
  • 血管的寿命决定人的寿命!这几种行为最伤血管 2019-07-04
  • 东方网与武警上海总队一支队签署警企共建协议 2019-07-04
  • 脱贫攻坚正当全省“大合唱”时 2019-06-13
  • 中国电信安康分公司60家智慧家庭便民服务中心盛大开业中国电信安康-最新活动 2019-06-08
  • 强势发力体育营销 世界杯中国企业改变“旁观”窘状 2019-06-05
  • 三星Gear S4智能手表曝料:支持LTE 金色配色三星GearS4智能手表曝料-手机行情 2019-06-05
  • 19平300万成交 杭州学区房最高价再一次被刷新 2019-06-04
  • 推荐6AT智雅型 长安睿骋CC购车手册 2019-06-04
  • 紫光阁中共中央国家机关工作委员会 2019-05-30
  • 山西吕梁市旅游发展委员会总工程师周瑞美被查 2019-05-27
  • 天中图库好运彩339 广东11选5任选五单式票 下期双色球蓝球迷语 彩票中奖者6十1 安徽11选5任五历史最大遗漏 天津时时彩怎么代理公司 11选5玩法介绍 顶呱刮点石成金中大奖 极速时时彩怎么玩法 辽宁35选7出球顺序 中国竞彩网2串1 今日福彩中奖号码6 香港赛马会必中九肖 重庆快乐10分怎么玩 广西快乐10分网址客户端