-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtut24.html
53 lines (45 loc) · 1.13 KB
/
tut24.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
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* Adjancet sibling selector */
li+li+li{
list-style: none;
/* text-decoration: none; */
}
/* a{
text-decoration: none;
} */
/* Child selectors */
div:nth-child(odd)
{
color:red;
}
div:nth-child(even)
{
color:green;
}
</style>
</head>
<body>
<!-- Adjancet sibling selector -->
<!-- <ul>
<li><a href="">HTML</a></li>
<li><a href="">CSS</a></li>
<li><a href="">BOOTSTRAP</a></li>
<li><a href="">JAVASCRIPT</a></li>
<li><a href="">ANGULARJS</a></li>
</ul> -->
<!-- Child selector -->
<!-- <div> -->
<div>1 - HTML</div>
<div>2 - CSS</div>
<div>3 - BOOTSTRAP</div>
<div>4 - JAVASCRIPT</div>
<div>5 - ANGULARJS</div>
<!-- </span> -->
</body>
</html>