tas2580
Blog über Webentwicklung

HTML5 Attribut - sortable

Das sortable-Attribut gibt an, dass eine Tabelle sortiert werden kann.

Beispiel

<table sortable>
  <tr>
    <th>Monat</th>
    <th>Einnahmen</th>
  </tr>
  <tr>
    <td>Jannuar</td>
    <td>100€</td>
  </tr>
</table>

In Tags benutzt

Das sortable Attribut wird in den hier aufgelisteten Tags benutzt.

table

Definiert eine Tabelle

Attribut Wert Beschreibung
sortable Gibt an, dass die Tabelle sortierbar sein sollte.