-
Notifications
You must be signed in to change notification settings - Fork 0
/
tut14.html
32 lines (29 loc) · 932 Bytes
/
tut14.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
<!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>
#firstPara{
color: red;
}
.bgBlue{
color: orange;
background-color: khaki;
}
p{
border: 4px saddlebrown;
}
</style>
</head>
<body>
<h3> css selectors</h3>
<p>This paragraph is talk about css selectors </p>
<p>This paragraph is talk about another css selectors </p>
<!-- if we want only to color only one line we have to use id -->
<p id="firstPara">This paragraph is also talk about another css selectors </p>
<p id="secondPara" class="redElement bgBlue">This paragraph is also talk about another css selectors </p>
</body>
</html>