forked from chinmay021/web-development-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut18.html
More file actions
25 lines (25 loc) · 721 Bytes
/
tut18.html
File metadata and controls
25 lines (25 loc) · 721 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colors in CSS</title>
<style>
#firstPara{
color: red;/*name color representation*/
}
#secondPara{
color: rgb(152, 199, 23);/*rgb color representation*/
}
#thirdPara{
color: #0515ff; /*hex value color representation*/
}
</style>
</head>
<body>
<h2>This is my first box</h2>
<p id="firstPara">This is a paragraph from first box</p>
<p id="secondPara">This is a paragraph from first box</p>
<p id="thirdPara">This is a paragraph from first box</p>
</body>
</html>