mirror of
https://github.com/TheTaz25/denis.ergin.git
synced 2025-07-08 07:38:46 +00:00
feat(slides): adjust + extend slides, make task
This commit is contained in:
parent
f3f3efbaab
commit
6aa0128a13
4 changed files with 178 additions and 0 deletions
|
@ -8,4 +8,125 @@
|
|||
Neben <code>table,tr</code> und <code>td</code>, gibt es auch Tags um eine Tabelle etwas besser zu strukturieren
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<ul>
|
||||
<li><code>thead</code> für die Kopfzeilen</li>
|
||||
<li><code>tbody</code> für den eigentlichen Inhalt</li>
|
||||
<li><code>tfoot</code> für Fußzeilen</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Artikel</th>
|
||||
<th>Preis</th>
|
||||
<th>Menge</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">Summe</td>
|
||||
<td>7,97€</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Honig</td>
|
||||
<td>1,99€</td>
|
||||
<td>2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Butter</td>
|
||||
<td>3,99€</td>
|
||||
<td>1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<pre class="html"><code data-trim data-line-number>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Artikel</th>
|
||||
<th>Preis</th>
|
||||
<th>Menge</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">Summe</td>
|
||||
<td>7,97€</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Honig</td>
|
||||
<td>1,99€</td>
|
||||
<td>2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Butter</td>
|
||||
<td>3,99€</td>
|
||||
<td>1</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</code></pre>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3>Zeilen-Header</h3>
|
||||
<p>Natürlich ist es auch möglich, eine bestimmte Zelle als "Header" zu deklarieren</p>
|
||||
<p>In solchen Situationen empfiehlt es sich, auch das attribut <code>scope</code> auf <code>"row"</code> zu setzen.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<pre class="html"><code data-trim data-line-numbers>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Film</th>
|
||||
<th>Bewertung</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Matrix</th>
|
||||
<td>★★★★★</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Matrix Revolution</th>
|
||||
<td>★★★</td>
|
||||
</tr>
|
||||
</table>
|
||||
</code></pre>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Film</th>
|
||||
<th>Bewertung</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Matrix</th>
|
||||
<td>★★★★★</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Matrix Revolution</th>
|
||||
<td>★★★</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<p>Das <code>scope</code> Attribut hilft Screenreadern.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<p>Zu guter letzt:</p>
|
||||
<p>Es können Tabellen in Tabellen geschachtelt werden</p>
|
||||
</section>
|
||||
</section>
|
|
@ -94,6 +94,7 @@
|
|||
<section>
|
||||
<h3>Man kann auch Zellen zusammenfassen</h3>
|
||||
<p>Mithilfe des <code>colspan</code>-Attributes kann man festlegen, wie viele Spalten die Zelle einnehmen soll</p>
|
||||
<p>Der gleiche Effekt kann für Zeilen mittels <code>rowspan</code> erreicht werden.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue