-
Notifications
You must be signed in to change notification settings - Fork 0
/
colorBgcolor.html
64 lines (63 loc) · 1.29 KB
/
colorBgcolor.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>
<!--
colorBgcolor.html: An example illustration of the color & background-color property in CSS.
-->
<html>
<head>
<title>Color & Background-Color</title>
<meta charset="utf-8" />
<meta name="CSS" content="color, background-color" />
<style type="text/css">
table {border: 3;}
th {color: yellow; background-color: black;}
tr.ram {background-color: orange;}
tr.sai {background-color: magenta; color: white;}
tr.roh {background-color: cyan;}
tr.kar {background-color: yellow;}
tr.srs {background-color: blue; color: white;}
tr.shv {background-color: red; color: white;}
</style>
</head>
<body>
<label>
My Friends & I
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Sex</th>
</tr>
<tr class="ram">
<td>Ch. Sriram</td>
<td>23</td>
<td>Male</td>
</tr>
<tr class='sai'>
<td>K. Sai Kumar</td>
<td>23</td>
<td>NA</td>
</tr>
<tr class="roh">
<td>S.V. Rohit</td>
<td>23</td>
<td>Male</td>
</tr>
<tr class="kar">
<td>O. Sai Karthik</td>
<td>23</td>
<td>Male</td>
</tr>
<tr class="srs">
<td>Sharaschandrika</td>
<td>23</td>
<td>Female</td>
</tr>
<tr class="shv">
<td>Shiva Jillella Goud</td>
<td>25</td>
<td>Male</td>
</tr>
</table>
</label>
</body>
</html>