-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattributes.html
59 lines (58 loc) · 1.77 KB
/
attributes.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
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible"content="ie-edge">
<title>settimeout and cleartimeout</title>
</head>
<style>
.container{
margin: 34px 23px;
}
input{
display: block;
}
input[type="text"]{
padding: 23px;
border: 2px solid red;
}
a[target='_self']{
font-size: 44px;
color: violet;
}
li:nth-child(3){
color: aqua;
}
li:nth-child(2n){
color: brown;
}
li:nth-child(2n+1){
color: green;
}
li:nth-child(odd){
background-color: chartreuse;
}
li:nth-child(even){
color: crimson;
}
</style>
<body>
<h1><a href="http://google.com" target="_blank">Go to google</a></h1>
<h1><a href="http://facebook.com" target="_self">Go to facebook</a></h1>
<div class="container">
<form action="" class="form-control">
<input type="text" placeholder="enter your text">
<input type="password" placeholder="enter your password">
<input type="submit">
</form>
<ul>
<li class="items" id="item-1">item-1</li>
<li class="items" id="item-2">item-2</li>
<li class="items" id="item-3">item-3</li>
<li class="items" id="item-4">item-4</li>
<li class="items" id="item-5">item-5</li>
</ul>
</div>
</body>
</html>