Les tableaux sont utilisés pour organiser et afficher les informations d'un jeu de données.
Documentationth0 | th1 | th2 | th3 | th4 | th5 |
---|---|---|---|---|---|
Lo | Lorem ipsum | L | Lorem ipsum dolor sit amet, consectetur adi | Lorem ipsum dolor sit amet, cons | Lorem ipsum dolor sit amet, consectetur adipisc |
Lorem ipsum dolor s | Lorem i | Lorem i | Lorem ipsum | Lorem ipsum dolor | |
Lorem ipsum dolor sit a | Lorem | Lorem ipsum dolor sit amet, conse | Lorem i | Lorem ipsum dolor sit amet, consectetur adipisc | Lorem ipsum dolor sit ame |
<div class="fr-table">
<table>
<caption>Caption du tableau (accessibilité)</caption>
<thead>
<tr>
<th scope="col"> th0 </th>
<th scope="col"> th1 </th>
<th scope="col"> th2 </th>
<th scope="col"> th3 </th>
<th scope="col"> th4 </th>
<th scope="col"> th5 </th>
</tr>
</thead>
<tbody>
<tr>
<td>Lore</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit </td>
<td>Lorem [...] elit ut.</td>
<td>L</td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lo</td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] </td>
<td>Lorem [...] elit ut.</td>
</tr>
</tbody>
</table>
</div>
th0 | th1 | th2 | th3 | th4 | th5 |
---|---|---|---|---|---|
Lorem ipsum dolor | Lorem ips | Lorem ips | Lorem ipsum dolor si | Lorem ipsum dolor sit amet, consectetur adipisci | Lorem ipsum dolor sit amet, con |
Lorem ips | Lorem ipsum dolor sit amet, consectetur adipis | Lorem ipsum dolor sit amet, cons | Lor | Lorem ipsum dol | Lorem i |
Lorem ipsum dolor sit amet, cons | Lore | Lorem ipsum d | Lorem ipsum dolor sit amet, | Lorem ipsum dolor sit amet, consectetur adipisci | Lorem ipsum dolor sit amet, consectetur adipisci |
<div class="fr-table fr-table--bordered">
<table>
<caption>Caption du tableau (accessibilité)</caption>
<thead>
<tr>
<th scope="col"> th0 </th>
<th scope="col"> th1 </th>
<th scope="col"> th2 </th>
<th scope="col"> th3 </th>
<th scope="col"> th4 </th>
<th scope="col"> th5 </th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem [...] elit u</td>
<td>Lorem [</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] el</td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [</td>
</tr>
<tr>
<td>Lorem [...] elit u</td>
<td>Lorem [...] eli</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
</tr>
</tbody>
</table>
</div>
th0 | th1 | th2 | th3 | th4 | th5 |
---|---|---|---|---|---|
Lorem ipsum dolor sit amet, conse | Lorem i | Lorem ipsum dolor sit | Lorem ipsum dolor sit amet, consectet | Lorem ipsum dolor sit amet, | Lorem ipsum dolor sit a |
Lorem i | Lorem ipsum dol | Lorem ipsum do | Lorem ipsum dolor sit amet, consectetur ad | Lorem ipsum dolor sit amet, consectetur adipiscin | Lorem ipsum dolor s |
<div class="fr-table fr-table--no-scroll">
<table>
<caption>Caption tableau non scrollable</caption>
<thead>
<tr>
<th scope="col"> th0 </th>
<th scope="col"> th1 </th>
<th scope="col"> th2 </th>
<th scope="col"> th3 </th>
<th scope="col"> th4 </th>
<th scope="col"> th5 </th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lore</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem </td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
</tr>
</tbody>
</table>
</div>
th0 | th1 | th2 |
---|---|---|
Lorem ipsum dolor si | Lorem ipsum dolor sit amet, consectetu | Lorem ipsum d |
Lore | Lorem ips | Lorem ipsum dolor |
<div class="fr-table fr-table--layout-fixed">
<table>
<caption>Caption tableau fixé</caption>
<thead>
<tr>
<th scope="col"> th0 </th>
<th scope="col"> th1 </th>
<th scope="col"> th2 </th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem [...] eli</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem</td>
</tr>
</tbody>
</table>
</div>
<div class="fr-table fr-table--no-caption">
<table>
<caption>Caption cachée</caption>
<thead>
<tr>
<th scope="col"> th0 </th>
<th scope="col"> th1 </th>
<th scope="col"> th2 </th>
<th scope="col"> th3 </th>
<th scope="col"> th4 </th>
<th scope="col"> th5 </th>
</tr>
</thead>
<tbody>
<tr>
<td>Lore</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] eli</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
</tr>
</tbody>
</table>
</div>
<div class="fr-table fr-table--caption-bottom">
<table>
<caption>Caption en bas</caption>
<thead>
<tr>
<th scope="col"> th0 </th>
<th scope="col"> th1 </th>
<th scope="col"> th2 </th>
<th scope="col"> th3 </th>
<th scope="col"> th4 </th>
<th scope="col"> th5 </th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] eli</td>
<td>Lorem [...] elit</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit</td>
</tr>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit u</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lo</td>
<td>Lorem [..</td>
</tr>
</tbody>
</table>
</div>
th0 | th1 | th2 | th3 | th4 | th5 |
---|---|---|---|---|---|
Lorem | Lorem ipsum dolor sit amet, consectetur adipis | Lorem ipsum dolor sit amet, consectetur adipisci | Lorem ipsum dolor sit amet, consectetur | Lorem ipsum dolor sit amet | Lorem ipsum dolor sit am |
Lorem ipsum do | Lorem ipsum dolor sit amet, consect | Lorem ip | Lo | Lorem ipsum dolor si | Lorem ipsum dolor sit amet, consectetur adip |
Lorem ipsum dolor sit amet, consectetur ad | Lorem ipsum dolor sit amet, consectetur adipisc | Lorem i | Lorem ipsum dol | Lorem ipsum dolor sit amet, consectetur adipi | Lorem ipsum dolor sit ame |
<div class="fr-table fr-table--green-emeraude">
<table>
<caption>Caption du tableau (accessibilité)</caption>
<thead>
<tr>
<th scope="col"> th0 </th>
<th scope="col"> th1 </th>
<th scope="col"> th2 </th>
<th scope="col"> th3 </th>
<th scope="col"> th4 </th>
<th scope="col"> th5 </th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem </td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit u</td>
<td>Lorem [...] </td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lorem </td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...</td>
</tr>
</tbody>
</table>
</div>
th0 | th1 | th2 | th3 | th4 | th5 |
---|---|---|---|---|---|
Lorem ipsum dolor sit amet, consectetur a | Lorem ipsum dolor sit amet | Lorem | Lorem ips | Lorem ipsum d | Lore |
Lorem ipsum dolor sit amet, cons | Lorem i | Lorem ipsum dolor | Lorem ipsum dolor sit amet, consectetur adi | Lorem ipsum dolor sit am | |
L | Lorem ipsum dolor sit amet, consectetur adipisci | Lorem ipsum dolor sit amet, consecte | Lorem ipsum dolor | Lorem ipsum dolor s | Lorem ips |
<div class="fr-table fr-table--green-emeraude fr-table--bordered">
<table>
<caption>Caption du tableau (accessibilité)</caption>
<thead>
<tr>
<th scope="col"> th0 </th>
<th scope="col"> th1 </th>
<th scope="col"> th2 </th>
<th scope="col"> th3 </th>
<th scope="col"> th4 </th>
<th scope="col"> th5 </th>
</tr>
</thead>
<tbody>
<tr>
<td>Lorem [...] elit ut.</td>
<td>Lo</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...]</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem </td>
<td>Lorem [...] elit ut.</td>
</tr>
<tr>
<td>Lorem [...] eli</td>
<td>Lorem [..</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>Lorem [...] elit ut.</td>
<td>L</td>
</tr>
</tbody>
</table>
</div>