-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSS-link-pseudo-classes.html
57 lines (56 loc) · 1.59 KB
/
CSS-link-pseudo-classes.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Link Pseudo-classes</title>
<style>
a:link{
color: rebeccapurple;
/* Unvisited Link */
}
a:visited{
background-color: red;
/* Visited Link */
}
a:focus{
background-color:green;
/* focus point of the page of an element */
}
a:hover{
background-color: rgb(225, 0, 255);
/* mouse over link */
}
a:active{
background-color: rgb(164, 240, 23);
/* selected link */
}
input:focus{
color: whitesmoke;
background-color: red;
}
input:hover{
background-color: yellowgreen;
}
</style>
</head>
<body>
<nav>
<ul>
<li>
<a href="#home">Home</a>
<a href="#products">Products</a>
<a href="#sign">SignUp</a>
<a href="https://icons8.com/">Payment</a>
<a href="wwwwwwwwww">Log IN</a>
</li>
</ul>
</nav>
<p><b>Note:</b> a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.</p>
<p><b>Note:</b> a:active MUST come after a:hover in the CSS definition in order to be effective.</p>
<label for="name">User-Name:</label>
<input id="name" type="text"><br>
<label for="password">Password:</label>
<input type="password" name="name" id="name">
</body>
</html>