Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Nächste Überarbeitung | Vorherige Überarbeitung | ||
gf_informatik:web:repetition:websites [2022-01-04 08:23] – angelegt hof | gf_informatik:web:repetition:websites [2022-01-10 10:36] (aktuell) – gra | ||
---|---|---|---|
Zeile 18: | Zeile 18: | ||
* Der rote Button soll heller werden ('' | * Der rote Button soll heller werden ('' | ||
* Der blaue Button soll heller werden ('' | * Der blaue Button soll heller werden ('' | ||
+ | |||
+ | <nodisp 1> | ||
+ | ++++Lösung| | ||
+ | |||
+ | == HTML == | ||
+ | <code html index.html> | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <link rel=" | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <br> | ||
+ | < | ||
+ | <a href=" | ||
+ | <a href=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | == CSS == | ||
+ | <code css style.css> | ||
+ | |||
+ | body{ | ||
+ | background-color: | ||
+ | font-family: | ||
+ | } | ||
+ | |||
+ | h1{ | ||
+ | text-align: center; | ||
+ | } | ||
+ | |||
+ | a{ | ||
+ | font-size: 14pt; | ||
+ | text-align: center; | ||
+ | text-decoration: | ||
+ | padding: 10px 20px; | ||
+ | border-style: | ||
+ | } | ||
+ | |||
+ | a.red{ | ||
+ | background-color: | ||
+ | color: | ||
+ | } | ||
+ | |||
+ | a.red: | ||
+ | background-color: | ||
+ | color: darkred | ||
+ | } | ||
+ | |||
+ | a.blue{ | ||
+ | background-color: | ||
+ | color:cyan; | ||
+ | } | ||
+ | |||
+ | a.blue: | ||
+ | background-color: | ||
+ | color: darkblue | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ++++ | ||
+ | </ | ||