From 9c34f5aca697a50daa148e34d5f4699e0b943c25 Mon Sep 17 00:00:00 2001
From: Sascha Schulz <sschulz@dh-software.de>
Date: Do, 19 Jan 2023 15:48:00 +0100
Subject: [PATCH] finish HTML section and start CSS section
---
assets/html/dark.css | 5 +
assets/images/css-sucks.png | 0
index.html | 138 +++++++++++++++++++++++++++++-----
assets/html/main.css | 5 +
assets/html/simple2.html | 23 +++++
assets/html/simple.html | 23 +++++
assets/html/alternative-css.html | 12 +++
7 files changed, 186 insertions(+), 20 deletions(-)
diff --git a/assets/html/alternative-css.html b/assets/html/alternative-css.html
new file mode 100644
index 0000000..f4c98d3
--- /dev/null
+++ b/assets/html/alternative-css.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Alternative Css</title>
+ <link href="main.css" rel="stylesheet" title="default">
+ <link href="dark.css" rel="alternate stylesheet" title="dark">
+ </head>
+ <body>
+ <p>Dies ist ein Text</p>
+ </body>
+</html>
diff --git a/assets/html/dark.css b/assets/html/dark.css
new file mode 100644
index 0000000..acd5b99
--- /dev/null
+++ b/assets/html/dark.css
@@ -0,0 +1,5 @@
+html {
+ font-size: 40px;
+ color: white;
+ background-color: darkslategrey;
+}
diff --git a/assets/html/main.css b/assets/html/main.css
new file mode 100644
index 0000000..78ffc2d
--- /dev/null
+++ b/assets/html/main.css
@@ -0,0 +1,5 @@
+html {
+ font-size: 40px;
+ color: black;
+ background-color: lightgray;
+}
diff --git a/assets/html/simple.html b/assets/html/simple.html
new file mode 100644
index 0000000..9611290
--- /dev/null
+++ b/assets/html/simple.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Title</title>
+ <style>
+ html {
+ color: white;
+ }
+
+ a {
+ color: lightblue;
+ }
+ </style>
+ </head>
+ <body>
+ <h1>Lorem Ipsum</h1>
+ <div>
+ <p>Lorem ipsum dolor sit amet, consectetuer adipiscing</p>
+ <a href="/assets/html/simple2.html">Weitere Infos</a>
+ </div>
+ </body>
+</html>
diff --git a/assets/html/simple2.html b/assets/html/simple2.html
new file mode 100644
index 0000000..55a76e8
--- /dev/null
+++ b/assets/html/simple2.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Title</title>
+ <style>
+ html {
+ color: white;
+ }
+
+ a {
+ color: lightblue;
+ }
+ </style>
+ </head>
+ <body>
+ <h1>Li Europan lingues</h1>
+ <div>
+ <p>Li Europan lingues es membres del sam familie.</p>
+ <a href="/assets/html/simple.html">Zurück</a>
+ </div>
+ </body>
+</html>
diff --git a/assets/images/css-sucks.png b/assets/images/css-sucks.png
new file mode 100644
index 0000000..1c305e8
--- /dev/null
+++ b/assets/images/css-sucks.png
Binary files differ
diff --git a/index.html b/index.html
index bbf2946..518ac25 100644
--- a/index.html
+++ b/index.html
@@ -90,9 +90,11 @@
</section>
<section>
<ul>
+ <li>HyperText Markup Language</li>
<li>Erste Version 1993 von Tim Berners-Lee</li>
<li>Dokumentationsmedium</li>
<li>Ursprünglich rein akademische Verwendung</li>
+ <li>Verlinkungen der Dokumente macht sie "hyper"</li>
</ul>
</section>
<section>
@@ -129,30 +131,21 @@
</pre>
</section>
<section>
- <h3>Grundgerüst</h3>
- <pre>
- <code data-trim data-line-numbers>
- <script type="text/template">
- <div>Inhalt</div>
- </script>
- </code>
- </pre>
- </section>
- <section>
<h3>Beispiel</h3>
<pre>
<code data-trim data-line-numbers>
<script type="text/template">
<!DOCTYPE html>
- <html lang="de">
+ <html lang="en">
<head>
<meta charset="UTF-8">
+ <title>Title</title>
</head>
<body>
- <h1>Überschrift</h1>
+ <h1>Lorem Ipsum</h1>
<div>
- <p>Dies ist ein Paragraph</p>
- <p>Dies ist noch ein Paragraph mit einem längeren Text</p>
+ <p>Lorem ipsum dolor sit amet, consectetuer adipiscing</p>
+ <a href="/assets/html/simple2.html">Weitere Infos</a>
</div>
</body>
</html>
@@ -162,13 +155,118 @@
</section>
<section>
<h3>Beispiel</h3>
+ <iframe data-src="/assets/html/simple.html"></iframe>
+ </section>
+ <section>
+ <h3>Aufbau eines Elements</h3>
<pre>
- <code>
- <h1>Überschrift</h1>
- <div>
- <p>Dies ist ein Paragraph</p>
- <p>Dies ist noch ein Paragraph mit einem längeren Text</p>
- </div>
+ <code data-trim data-line-numbers>
+ <script type="text/template">
+ <span id="my-id" class="super important">Inhalt</span>
+ </script>
+ </code>
+ </pre>
+ <pre>
+ <code data-trim data-line-numbers>
+ <script type="text/template">
+ <input id="input" class="super important" disabled="disabled"/>
+ <input id="input2" class="super important" disabled>
+ </script>
+ </code>
+ </pre>
+ </section>
+ </section>
+ <section>
+ <section>
+ <h2>CSS</h2>
+ </section>
+ <section>
+ <ul>
+ <li>Cascading Style Sheet</li>
+ <li>Nach größerer Verbreitung von HTML</li>
+ <li>Webseiten ansprechend gestalten</li>
+ </ul>
+ </section>
+ <section>
+ <img data-src="/assets/images/css-sucks.png">
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <pre>
+ <code data-trim data-line-numbers>
+ <script type="text/template">
+ selector [, selector, selector, ...] {
+ property: value;
+ }
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <pre>
+ <code data-trim data-line-numbers>
+ <script type="text/template">
+ html {
+ background-color: red;
+ font-size: 30px;
+ }
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispiel</h3>
+ <pre>
+ <code data-trim data-line-numbers>
+ <script type="text/template">
+ <html lang="en">
+ <head>
+ ...
+ <style>
+ html {
+ background-color: red;
+ font-size: 30px;
+ }
+ </style>
+ </head>
+ <body>
+ ...
+ </body>
+ </html>
+ </script>
+ </code>
+ </pre>
+ </section>
+ <section>
+ <h3>Beispielhafte CSS-Eigenschaften</h3>
+ <ul>
+ <li>background-color: red</li>
+ <li>font-family: Georgia, serif, Arial</li>
+ <li>text-decoration: line-through underline</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Selektoren</h3>
+ <ul>
+ <li>Umfangreiche Element-Selektoren zur Anwendung der Styles</li>
+ <li>Kinder, Enkel...</li>
+ <li>Geschwister, direkte Nachfolger</li>
+ <li>Attribute</li>
+ <li>Pseudoklassen</li>
+ </ul>
+ </section>
+ <section>
+ <h3>Selektoren</h3>
+ <pre>
+ <code data-trim data-line-numbers>
+ <script type="text/template">
+ #my-id // Id
+ html, body // Mehrfachselektion
+ div > p // p die direkt unterhalb eines div sind
+ a:visited // besuchte Links
+ span.important // span mit der Klasse "important"
+ </script>
</code>
</pre>
</section>
--
Gitblit v1.9.3