-
Notifications
You must be signed in to change notification settings - Fork 0
/
4.html
51 lines (50 loc) · 923 Bytes
/
4.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
<html>
<head>
<style>
h1
{
text-align:center;
padding:5px;
font-size:30px;
font-family:bold;
}
p
{
color:black;
padding:5px;
font-size:25px;
}
input
{
margin-left:300px;
width:320px;
font-size:20px;
}
</style>
<script>
function f1()
{
window.open("element.html");
}
function f2()
{
window.open("id.html");
}
function f3()
{
window.open("class.html");
}
function f4()
{
window.open("group.html");
}
</script>
</head>
<body >
<h1>Selectors</h1>
<input type="button" value="Element Selector" onclick="f1()"><br><br>
<input type="button" value="id Selector" onclick="f2()"><br><br>
<input type="button" value="Class Selector" onclick="f3()"><br><br>
<input type="button" value="Group Selectors" onclick="f4()"><br><br>
<body>
</html>