Advertisement
Guest User

table sample

a guest
Mar 11th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement