forked from urfu-2018/demo-task-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5.html
42 lines (36 loc) · 1.28 KB
/
5.html
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
<!DOCTYPE html>
<html lang="ru">
<head>
<title>CSS Селекторс 2000</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../global.css">
</head>
<body>
<h1 class="global-heading"> </h1>
<p>Решите задачу, используя <code>background: <color></code> и <code>color: <color></code></p>
<main class="global-results">
<style>
input#checkbox:checked ~ div
{
background-color: black;
color: #fff;
}
</style>
<section class="global-result">
<article class="global-scope">
<label for="checkbox">Black Theme</label>
<input id="checkbox" type="checkbox"><br>
<div class="tab">Text</div>
</article>
</section>
<section class="global-result">
<img class="global-goal">
</section>
</main>
<nav class="global-nav">
<a class="global-prev">Предыдущее</a>
<a class="global-next">Следующее</a>
</nav>
<script src="../global.js"></script>
</body>
</html>