-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoBeMadePretty_1.html
More file actions
83 lines (67 loc) · 3.24 KB
/
Copy pathtoBeMadePretty_1.html
File metadata and controls
83 lines (67 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Phillip Glahe" content="?">
<meta name="Jasper" content="430423">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aufgabe 5.1 - CSS Teil 1</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script>
function lameButton(event) {
event.preventDefault();
alert("Das war jetzt schon echt faad...");
}
function niceButton(event) {
event.preventDefault();
alert("Nice!!");
}
</script>
</head>
<body>
<h1 id = "Pretty"> Make me pretty<span>!</span></h1>
<h3>Erst CSS macht diese Seite ansehnlich.</h3>
<container>
<p>
CSS (Cascading Style Sheets) ist eine Stylesheet-Sprache, und <q>bildet gemeinsam mit HTML und DOM eine der Kernsprachen des World Wide Web.</q> [Wikipedia: Cascading Style Sheets]<br>
Dabei trägt CSS dazu bei, dass man sich das WWW auch ernsthaft ansehen möchte. Denn ohne CSS sähe ein Button so aus:</p>
<br>
<button id="lame" onClick="lameButton(event)">Schnöder Button</button>
<br>
<p>Mit der Hilfe von CSS, hingegen, sieht die Welt schon ganz anders aus:</p>
<br>
<button id="vollcool" onClick="niceButton(event)">Mega nicer Button!!</button>
<br>
<p>Schon viel besser, dabei kann der Button garnichts.</p>
<h3>Hier ein paar Gründe, warum CSS nicht zu unterschätzen ist:</h5>
<div class="wrapper">
<div id="leftsidebar">
<ul id = "list" >
<li class="item"><p>1. People love pretty things!</p></li>
<li class="item"><p>2. Wie diese Seite zeigt ʕ•ᴥ•ʔ, kann CSS die Übersichtlichkeit einer Website verbessern.</p></li>
<li class="item"> <p>3. CSS ist einfach wiederzuverwenden, indem man einfach Klassen-Namen und ggfs. IDs wiederverwendet.</p></li>
<li class="item"><p><img src ="https://camo.githubusercontent.com/7e97b9c10423e06bf6f91e971d8a9cec5926adfe/68747470733a2f2f63646e2e776f726c64766563746f726c6f676f2e636f6d2f6c6f676f732f6373732d332e737667" width="150" height="150">
4. Zu große Bilder können leicht verkleinert, und sogar neben Text positioniert werden.
</p></li> <!--resizing and positioning image to the text -->
<li class="item"><p>5. User experience is Key!</p></li>
</ul>
</div>
</div>
</container>
<p>Aber wer kann sich CSS schon in Gänze merken? Keine Sorge, dafür gibt's Hilfe. Zum Beispiel hinter den Links dieser Dropdown-List ʕ•ᴥ•ʔ:</>
<div class="dropdown">
<button class="dropbtn">Dropdown</button>
<div class="dropdown-content">
<!-- dropdown elements -->
<a href="https://www.w3schools.com/css/default.asp" target="_blank">W3C - CSS"</a>
<a href="https://www.w3schools.com/html/default.asp" target="_blank">W3C - HTML</a>
<a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS" target="_blank"> Mozilla - Introduction to CSS</a> <!-- dropdown content -->
<a href="http://www.csstutorial.net/" target="_blank">CSSTutorial.net</a>
<a href="https://www.tutorialspoint.com/css/" target="_blank">tutorialspoint</a>
</div>
</div>
<br>
<a id="a" href="./toBeMadePretty_2.html">Genug über CSS gelernt?!</a>
</body>