forked from kokonior/HTML-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButtons.html
More file actions
61 lines (50 loc) · 1019 Bytes
/
Buttons.html
File metadata and controls
61 lines (50 loc) · 1019 Bytes
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
60
61
<!DOCTYPE html>
<html>
<head>
<style>
body{
text-align: center;
padding-top:10rem;
background-color: rgb(201, 121, 223);
}
.button {
border: none;
color: white;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
}
.button1 {
background-color:rgb(218, 120, 29);
color: white;
border: 2px solid #e1a99e;
}
.button1:hover {
background-color: #864caf;
color: white;
}
.button2 {
background-color: white;
color: black;
border: 2px solid #008CBA;
}
.button2:hover {
background-color: #008CBA;
color: white;
}
</style>
</head>
<body>
<h1>Look at the button element</h1>
<p>These are the html buttons. Hover over the button and observe the changes.</p>
<p> The moment you hover on the button, the cursor also changes into pointer</p>
<br>
<button class="button button1">Sign In</button>
<button class="button button2">Sign Up</button>
</body>
</html>