CZ:How to make tables

From Citizendium
Revision as of 02:59, 2 May 2007 by imported>Derek Harkness (Very very rough first draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There are two ways to build tables:

  • in special Wiki-markup
  • with HTML elements: <table>, <tr>, <td> or <th>.

Simple example

SexHeightWeight
Males1.85100
Females1.675

Wiki-markup

{| class="wikitable"
|-
! Sex
! Height
! Weight
|-
| Male
| 1.85
| 100
|-
| Female
| 1.6
| 75
|}

HTML

<table border="1px">
<tr><th>Sex</th><th>height</th><th>weight</ht></tr>
<tr><td>Males</td><td>1.85</td><td>100</td></tr>
<tr><td>Females</td><td>1.6</td><td>75</td></tr>
</table>

Markup description

Wikicode

HTML

Advanced editing

There are many additional things that can be don with tables. Full explanations of every feature of the HTML table markup can be found at the w3.org specificats and at w3schools.com.