-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml12.html
47 lines (41 loc) · 1.4 KB
/
html12.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
<!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 Selector</title>
<style>
/* Multiple class Style */
.bgborderpink{
background-color: pink;
border: 5px solid red;
}
h3{color:blue;
background-color: yellow;}
/* p{color:orange;
background-color: blue;} */
/* Class Style */
.fontred{
color:blue;
}
/* Id style */
#ParaID{color:yellow;
background-color: black;}
/* Grouping */
span,footer{
color:blue;
background-color: green;
}
</style>
</head>
<body>
<h3>This is CSS Selector</h3>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempora sint ut provident dolore odio ab cum sit perspiciatis nisi repudiandae?</p>
<a id="ParaID">This is another paragraph to show id in the style.</a>
<p class="bgborderpink">This is yet another paragraph example to demonstrate how a class work in a style</p>
<p class="bgborderpink fontred">This is yet another paragraph example to demonstrate how a class work in a style</p>
<span>This is an exmaple of span.</span>
<footer>THis is a example of footer</footer>
</body>
</html>