-
Notifications
You must be signed in to change notification settings - Fork 0
/
typesofselectors.html
50 lines (43 loc) · 958 Bytes
/
typesofselectors.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
<!-- types of selectors
1) Element as a selector
2) Id as a selector
3) class as a selector
4) universal as a selector
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
#ss{
background-color: black;
color: hotpink;
text-align: center;
font-size: 40px;
}
#tt{
background-color: yellow;
color: blue;
font-size: 50px;
text-align: center;
}
#pp{
color: blue;
background-color: lime;
}
.ee{
color: olive;
background-color: skyblue;
}
</style>
</head>
<body>
<p id="ss">welcome to the world of Css</p>
<p id="tt">Hii Everyone</p>
<h1 id="pp">We r doing Css</h1>
<h2 class="ee">Css is my favourite styling platform</h2>
<a href="universal_selector.html" style="font-size: 30px; text-align: center;">Universal selector</a>
</body>
</html>