Retour

Tableaux (table)

Les tableaux sont utilisés pour organiser et afficher les informations d'un jeu de données.

Documentation

Tableau par défaut

Caption du tableau (accessibilité)
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame

<div class="fr-table" id="table-7497">
    <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 [...] 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 [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
            </tr>
        </tbody>
    </table>
</div>

Tableau avec bordure

Caption du tableau (accessibilité)
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame

<div class="fr-table fr-table--bordered" id="table-7500">
    <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 [...] 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 [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
            </tr>
        </tbody>
    </table>
</div>

Tableau non scrollable

Caption tableau non scrollable
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame

<div class="fr-table fr-table--no-scroll" id="table-7503">
    <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>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>

Tableau colonnes fixées (layout-fixed)

Caption tableau fixé
th0 th1 th2
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame

<div class="fr-table fr-table--layout-fixed" id="table-7506">
    <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 [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
            </tr>
        </tbody>
    </table>
</div>

Tableau caption invisible

Caption cachée
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame

<div class="fr-table fr-table--no-caption" id="table-7509">
    <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>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>

Tableau caption Bottom

Caption en bas
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame

<div class="fr-table fr-table--caption-bottom" id="table-7512">
    <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 [...] 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>

Tableau accentué

Caption du tableau (accessibilité)
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame

<div class="fr-table fr-table--green-emeraude" id="table-7515">
    <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 [...] 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 [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
            </tr>
        </tbody>
    </table>
</div>

Tableau accentué avec bordure

Caption du tableau (accessibilité)
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame
Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame Lorem ipsum dolor sit ame

<div class="fr-table fr-table--green-emeraude fr-table--bordered" id="table-7518">
    <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 [...] 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 [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
            </tr>
        </tbody>
    </table>
</div>

Paramètres d’affichage

Choisissez un thème pour personnaliser l’apparence du site.