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 Lorem ipsum dolo Lorem ips Lorem ipsum dolor Lorem ipsum dolor sit amet, consectetur adipisc Lorem ipsum dolor sit amet, consectetur adi
Lorem ipsum dolor sit amet, conse Lorem ipsum dolor sit amet, c Lorem ipsum dolor sit am Lorem ip Lorem ipsum dolo L
Lorem ipsum dolo Lorem ipsum dolor sit Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, consectetur adipi Lorem ipsum dolor sit amet, consectetur adipisci Lorem ipsum dolor sit amet, consec

<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>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 </td>
            </tr>
            <tr>
                <td>Lorem [...] elit ut</td>
                <td>Lore</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] e</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></td>
                <td>Lorem [...] </td>
            </tr>
        </tbody>
    </table>
</div>

Tableau avec bordure

Caption du tableau (accessibilité)
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit amet, consectetur adipisc Lorem ip Lorem ipsum dolor s Lorem ipsu Lorem ipsum dolor sit amet, con
Lorem ipsum dolor sit a Lorem ipsum dolor sit amet, consectetur adipisc Lorem ipsum dolor sit amet, consectetur adipiscin Lorem ipsum dolor sit amet, consectetur ad Lorem ipsum dolor sit amet, consectetu Lorem ipsum dolor sit amet, consectetur adipis
Lorem ipsum dolo Lorem Lorem ipsum dolor sit amet L Lorem ipsum dolor 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 ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lore</td>
                <td>Lorem [.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
            </tr>
            <tr>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit </td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit u</td>
            </tr>
            <tr>
                <td>Lorem [...] elit</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] </td>
                <td>Lorem [...] elit ut.</td>
                <td>Lor</td>
                <td>Lorem [...] elit ut.</td>
            </tr>
        </tbody>
    </table>
</div>

Tableau non scrollable

Caption tableau non scrollable
th0 th1 th2 th3 th4 th5
Lorem Lorem ipsum dolor sit amet, consec Lorem ipsum dolor sit ame Lorem ipsum dolor sit amet, co Lorem ipsum dolor sit Lorem ipsum dolor sit amet, consectetu
Lorem ipsum dolor sit amet, consectetur adipiscin Lorem ipsum dolor sit amet, consectetur adipisc Lor Lorem ipsum dolor sit Lorem ipsum dolor sit amet, consectetur adi Lorem ipsum dolor sit amet, consectetur

<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>Lorem [..</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] </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 colonnes fixées (layout-fixed)

Caption tableau fixé
th0 th1 th2
Lorem ipsum dolor sit amet, consectetur ad Lorem ipsum dolor Lorem ipsu
Lorem Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit amet, con

<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 [...] elit ut.</td>
                <td>Lor</td>
                <td>Lo</td>
            </tr>
            <tr>
                <td>Lor</td>
                <td>L</td>
                <td>Lorem [...] elit ut.</td>
            </tr>
        </tbody>
    </table>
</div>

Tableau caption invisible

Caption cachée
th0 th1 th2 th3 th4 th5
Lorem ipsum dol Lorem ipsum dolor sit amet, consec Lorem ipsum dolor sit amet, c Lorem ipsum dolor si Lorem ipsum Lorem ipsum dolor sit amet, consectetur adi
Lorem ipsum dolor Lorem ipsum dolor sit amet, consectetur adip Lorem ipsum do Lorem ipsum dolor sit amet, consectetur adi Lorem ipsum dolor s Lorem ipsum dolor sit amet, consect

<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>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...</td>
                <td>Lorem [...] </td>
            </tr>
            <tr>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit </td>
                <td>Lorem [.</td>
                <td>Lore</td>
            </tr>
        </tbody>
    </table>
</div>

Tableau caption Bottom

Caption en bas
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit am Lorem Lorem ipsum do Lorem ipsum dolo Lo Lorem ipsum dolor sit amet, consectetur adipi
Lorem ipsu Lorem ipsum dolo Lorem ipsum dolor sit amet, consectetur Lorem ipsum dolor sit am Lorem ipsum dolor Lorem ipsum dolor sit amet, con

<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 [...</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 [...] e</td>
                <td>Lorem [...] elit u</td>
            </tr>
        </tbody>
    </table>
</div>

Tableau accentué

Caption du tableau (accessibilité)
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit amet, conse Lorem ips L Lorem ipsum dolor sit Lorem ipsum dolor sit amet, consec Lorem ipsum dolor
Lorem Lorem ipsum dolo Lorem ipsum dolor sit amet, cons Lorem i Lorem ipsu Lorem ipsum dolor sit ame
Lorem ipsum dolor sit amet, consectetur adi Lorem ipsum dolor sit amet, consectetur adipisc Lorem ipsum Lorem ipsum dolor si Lorem ipsum dolor sit amet, consectetur adi

<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>L</td>
                <td>Lorem</td>
                <td>Lorem [...] elit </td>
                <td>Lorem [...] elit u</td>
                <td>Lorem [...] elit </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 [...] eli</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 [</td>
                <td>Lorem [...] elit </td>
            </tr>
        </tbody>
    </table>
</div>

Tableau accentué avec bordure

Caption du tableau (accessibilité)
th0 th1 th2 th3 th4 th5
Lorem ipsum dolor sit am Lorem ipsum Lorem ipsum dolor L Lorem ipsum dolor sit a Lorem ipsum dolor sit amet, consectetur ad
Lorem ip Lorem ipsum dolor sit amet, cons Lorem ip Lorem ipsum dolor sit amet, consectetur adipisc Lorem ipsum dolor sit amet, Lorem ipsum dolor sit amet,
Lorem ipsum dolor sit amet, consectetur adipis Lorem ip Lorem ipsum dolor sit amet, consectetur ad Lore Lorem ipsum dolor s

<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>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit</td>
            </tr>
            <tr>
                <td>Lorem [...] elit ut.</td>
                <td>Lor</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem [...] elit</td>
                <td>L</td>
                <td>Lorem [</td>
            </tr>
            <tr>
                <td>Lore</td>
                <td>Lorem [...] elit ut.</td>
                <td>Lorem</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.