CZ:How to make tables
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
Sex | Height | Weight |
---|---|---|
Males | 1.85 | 100 |
Females | 1.6 | 75 |
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.