-
Notifications
You must be signed in to change notification settings - Fork 0
/
tut32.html
50 lines (49 loc) · 1.51 KB
/
tut32.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Atribute and nth child pseduo selector</title>
<style>
.container{
display: block;
margin: auto;
width: 234px;
}
input{
display: block;
}
input[type='text']{
border: 3px solid red;
padding: 20px;
}
a[target]{
font-size: 40px;
color: rgb(94, 54, 5);
}
li:nth-child(3n+3){
color: aqua;
/* this is used to target the value of li which nummber you given in the bracket */
}
</style>
</head>
<body>
<div class="container">
<h1> <a href="http://google.com" target="_blank">fuck the google</a></h1>
<form action="" class="form-control">
<input type="text" placeholder="Enter your name">
<input type="password" placeholder="Enter your password">
<input type="submit" value="submit">
</form>
<ul>
<li class="item" id="item-2">Item1</li>
<li class="item" id="item-1">Item2</li>
<li class="item" id="item-3">Item3</li>
<li class="item" id="item-4">Item4</li>
<li class="item" id="item-5">Item5</li>
<li class="item" id="item-6">Item6</li>
</ul>
</div>
</body>
</html>