-
Notifications
You must be signed in to change notification settings - Fork 0
/
color.html
64 lines (56 loc) · 2.63 KB
/
color.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!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>Colors in HTML</title>
</head>
<body>
<!-- background Color -->
<h1 style="background-color: blue;">Laptop</h1>
<h1 style="background-color: gold;">gold</h1>
<h1 style="background-color:red;">cricket</h1>
<!-- Text Color -->
<h1 style="color: chocolate;">Football is good Sport</h1>
<h1 style="color: crimson;">University of London</h1>
<!-- Border Color -->
<h1 style="border:2px solid blue;">Border Color Blue</h1>
<h1 style="border:4px solid red;">Border Color Red</h1>
<h1 style="border:4px solid purple;">Border Color purple</h1>
<!-- background Color using rgb -->
<h1 style="background-color: rgb(82, 163, 163);">RGB</h1>
<h1 style="background-color: rgba(49,59,69,78);">Great</h1>
<h1 style="background-color: rgb(82, 0, 0);">RGB</h1>
<h1 style="background-color: rgb(255, 0, 0);">RGB</h1>
<h1 style="background-color: rgb(0,255,0);">RGB</h1>
<h1 style="background-color: rgb(0 ,0,255);">RGB</h1>
<!-- background Color Grey using rgb -->
<h1 style="background-color: rgb(60 ,60, 60);">RGB</h1>
<h1 style="background-color: rgb(140, 140, 140);">RGB</h1>
<!-- background Color using rgba -->
<h1 style="background-color: rgba(255, 99, 71,0.5);">RGBA</h1>
<h1 style="background-color: rgba(255, 99, 71,0.6);">RGBA</h1>
<h1 style="background-color: rgba(255, 99, 71,0.8);">RGBA</h1>
<h1 style="background-color: rgba(255, 99, 71,1);">RGBA</h1>
<h1 style="background-color: rgba(221, 162, 152, 0);">RGBA</h1>
<!-- background Color using Hex values -->
<h1 style="background-color: #0000;">black</h1>
<h1 style="background-color: #ff0000;">RED</h1>
<h1 style="background-color: #00ff;">blue</h1>
<h1 style="background-color: #ffff;">White</h1>
<h1 style="background-color: #ff5600;">Orange</h1>
<h1 style="background-color: #ff5690;">Pink</h1>
<h1 style="background-color: #6a5bcd;">Purple</h1>
<!-- background Color using HSL and HSLA values -->
<h1 style="background-color: hsl(0, 100%, 50%);">red</h1>
<h1 style="background-color: hsl(120, 100%, 50%);">green</h1>
<h1 style="background-color: hsl(240, 100%, 50%);">blue/h1>
<h1 style="background-color: hsl(120, 70%, 60%);">light green</h1>
<h1 style="background-color: hsl(248, 70%, 60%);">Purple</h1>
<h1 style="background-color: hsl(248, 65%, 70%);">red</h1>
<h1 style="background-color: hsl(248, 0%, 70%);">red</h1>
<h1 style="background-color: hsl(248, 65%, 100%);">red</h1>
<h1 style="background-color: hsl(248, 65%,0%);">red</h1>
</body>
</html>