diff --git a/src/components/slides/html-tables/advanced.astro b/src/components/slides/html-tables/advanced.astro new file mode 100644 index 0000000..7f6a689 --- /dev/null +++ b/src/components/slides/html-tables/advanced.astro @@ -0,0 +1,11 @@ +
+
+

Die Tabelle etwas besser strukturieren

+
+ +
+

+ Neben table,tr und td, gibt es auch Tags um eine Tabelle etwas besser zu strukturieren +

+
+
\ No newline at end of file diff --git a/src/components/slides/html-tables/basics.astro b/src/components/slides/html-tables/basics.astro new file mode 100644 index 0000000..25e8574 --- /dev/null +++ b/src/components/slides/html-tables/basics.astro @@ -0,0 +1,136 @@ +
+
+

Einführung

+
+ +
+

Wir verwenden Tabellen um große Datenmengen strukturiert anzuzeigen.

+

Wir verwenden Tabellen NICHT um eine HTML-Seite zu strukturieren (das wurde damals gern gemacht)

+
+ +
+

Eine Tabelle definieren

+
+ +
+

+      <table> <!-- Tabellendefinition -->
+        <tr> <!-- Tabellenzeile (Table-Row) -->
+          <td>Mein Inhalt</td> <!-- Tablenzelle (Table-Data) -->
+        </tr>
+      </table>
+    
+
+ +
+

+      <table>
+        <tr>
+          <td>Mein Inhalt 1</td>
+          <td>Mein Inhalt 2</td>
+        </tr>
+        <tr>
+          <td>Mein Inhalt 3</td>
+          <td>Mein Inhalt 4</td>
+        </tr>
+      </table>
+    
+
+ +
+ + + + + + + + + +
Mein Inhalt 1Mein Inhalt 2
Mein Inhalt 3Mein Inhalt 4
+
+ +
+

Recht langweilig oder?

+

Wie wärs mit Kopfzeilen?

+
+ +
+

+        <table>
+        <tr>
+          <th>Kopf 1</th>
+          <th>Kopf 2</th>
+        </tr>
+        <tr>
+          <td>Mein Inhalt 1</td>
+          <td>Mein Inhalt 2</td>
+        </tr>
+        <tr>
+          <td>Mein Inhalt 3</td>
+          <td>Mein Inhalt 4</td>
+        </tr>
+      </table>
+    
+
+ +
+ + + + + + + + + + + + + +
Kopf 1Kopf 2
Mein Inhalt 1Mein Inhalt 2
Mein Inhalt 3Mein Inhalt 4
+
+ +
+

Man kann auch Zellen zusammenfassen

+

Mithilfe des colspan-Attributes kann man festlegen, wie viele Spalten die Zelle einnehmen soll

+
+ +
+

+        <table>
+        <tr>
+          <th>Kopf 1</th>
+          <th>Kopf 2</th>
+          <th>Kopf 3</th>
+        </tr>
+        <tr>
+          <td colspan="2">Mein Inhalt 1</td>
+          <td>Ich bin in Spalte 3</td>
+        </tr>
+        <tr>
+          <td>Mein Inhalt 3</td>
+          <td>Mein Inhalt 4</td>
+        </tr>
+      </table>
+    
+
+ +
+ + + + + + + + + + + + + + +
Kopf 1Kopf 2Kopf 3
Mein Inhalt 1 (länger zur Demonstration)Ich bin in Spalte 3
Mein Inhalt 3Mein Inhalt 4
+
+
\ No newline at end of file diff --git a/src/components/slides/html-tables/index.astro b/src/components/slides/html-tables/index.astro new file mode 100644 index 0000000..cba8722 --- /dev/null +++ b/src/components/slides/html-tables/index.astro @@ -0,0 +1,11 @@ +--- +import TitleSlide from './title.astro' +import Basics from './basics.astro' +import Advanced from './advanced.astro' +--- + +
+ + + +
\ No newline at end of file diff --git a/src/components/slides/html-tables/title.astro b/src/components/slides/html-tables/title.astro new file mode 100644 index 0000000..15b59d7 --- /dev/null +++ b/src/components/slides/html-tables/title.astro @@ -0,0 +1,3 @@ +
+

Tabellen in HTML

+
\ No newline at end of file diff --git a/src/pages/slides/tables.astro b/src/pages/slides/tables.astro new file mode 100644 index 0000000..707d23a --- /dev/null +++ b/src/pages/slides/tables.astro @@ -0,0 +1,8 @@ +--- +import Reveal from '../../layouts/Reveal.astro'; +import Table from '../../components/slides/html-tables/index.astro' +--- + + + + \ No newline at end of file