Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:html_cheat_sheet [2008/08/15 02:19]
smthng
notes:html_cheat_sheet [2008/08/15 02:59] (current)
smthng
Line 65: Line 65:
   * <code html>   * <code html>
      <table border="1">      <table border="1">
 +     <caption>My Table</caption>
      <tr><th>header 1</th> <th>header 2</th></tr>      <tr><th>header 1</th> <th>header 2</th></tr>
      <tr><td>row 1-cell 1</td> <td>row 1-cell 2</td></tr>      <tr><td>row 1-cell 1</td> <td>row 1-cell 2</td></tr>
      </table> </code>      </table> </code>
   * A table with border 0 can be used to format the layout of a page.   * A table with border 0 can be used to format the layout of a page.
 +  * A table can also be in the form:  <thead> <tfoot> <tbody> , but all three must be specified and contain at least one row.
 +  * To set attributes of columns in a table, a colgroup with column entries can be used e.g. <code html>
 +<table border="1">
 +<colgroup span="2">
 +<col width="20"></col>
 +<col width="50"></col>
 +</colgroup> ... </table>
 +</code>
  
 ==== Forms ==== ==== Forms ====
Recent changes RSS feed Creative Commons License Donate Minima Template by Wikidesign Driven by DokuWiki