Tableaux
Tableaux simple
Tableau simple
| Firstname | Lastname | Age |
|-----------|----------|-----|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
<table style="width:100%">
<tr>
<th>Firstname</th> <!--th pour les headers-->
<th>Lastname</th>
<th>Age</th>
</tr>
<tr> <!--tr pour les lignes-->
<td>Jill</td>
<td>Smith</td>
<td>50</td> <!--td pour les colonnes-->
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
Configuration
Centrage des éléments du tableau
La position des ':' dans le tableau définira le centrage appliqué aux éléments du tableau.
Code:
| Firstname | Lastname | Age |
|:----------|:---------|:----|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
Rendu:
Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
Code:
| Firstname | Lastname | Age |
|:---------:|:--------:|:---:|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
Rendu:
Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |
Code:
| Firstname | Lastname | Age |
|----------:|---------:|----:|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
Rendu:
Firstname | Lastname | Age |
---|---|---|
Jill | Smith | 50 |
Eve | Jackson | 94 |