-
Notifications
You must be signed in to change notification settings - Fork 0
/
tutorial15.html
37 lines (36 loc) · 1011 Bytes
/
tutorial15.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
<!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>CSS Selectors</title>
<style>
/* Id selector */
#firstPara{
background: wheat;
}
/* class selector */
.paras{
color: darkblue;
}
/* element selector */
p{
border: 2px solid blue;
}
/* group selector */
footer, span{
color: brown;
}
</style>
</head>
<body>
<h3>This is CSS Selector</h3>
<p id="firstPara" class="paras">This is a simple paragraph for demonstration of CSS Selectors</p>
<p id="secondPara" class="paras">This is a simple paragraph for demonstration of CSS Selectors</p>
<p>It should be a pink color</p>
<p>This also a pink color</p>
<span>This is span</span>
<footer>This is footer</footer>
</body>
</html>