This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

table sample

By: a guest on Mar 11th, 2013  |  syntax: None  |  size: 1.06 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!-- TABLE SAMPLE -->
  2. <table>
  3. <tbody>
  4. <tr>
  5. <th colspan="2">Use the <b>th</b> tag to create the header which will display in bold</th>
  6. </tr>
  7. <tr>
  8. <td style="width: 50%;">The <b>tr</b> tag creates the row</td>
  9. <td style="width: 50%;">The <b>td</b> tag creates individual cells for each row</td>
  10. </tr>
  11. <tr class="dark">
  12. <td style="width: 50%;">You should always use the closing tags</td>
  13. <td style="width: 50%;">You can use a variety of XHTML tags inside the cell</td>
  14. </tr>
  15. <tr>
  16. <td style="width: 50%;">The three new table tags are <b>tbody, tfoot,</b> and <b>thead</b></td>
  17. <td style="width: 50%;">The <b>colspan</b> attribute allows you span more than one cell</td>
  18. </tr>
  19. <tr class="dark">
  20. <td style="width: 50%;">You should always use the closing tags</td>
  21. <td style="width: 50%;">You can use a variety of XHTML tags inside the cell</td>
  22. </tr>
  23. <tr>
  24. <td style="width: 50%;">The three new table tags are <b>tbody, tfoot,</b> and <b>thead</b></td>
  25. <td style="width: 50%;">The <b>colspan</b> attribute allows you span more than one cell</td>
  26. </tr>
  27. </tbody>
  28. </table>
clone this paste RAW Paste Data