Corrección del ejercicio CU01019D
Acá el código html:
<!DOCTYPE html>
<html lang="es">
<head>
<title>
CU01019D
</title>
<meta name="author" content="EnigmaticNerd"/>
<meta name="description" content="Colores HTML y CSS - aprenderaprogramar.com"/>
<meta name="keywords" content="rgb, hexadecimal, CSS, cursos, ejemplos, aprenderaprogramar.com, CU01019D"/>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="estilos/CU01019.css"/>
</head>
<body>
<table>
<tr>
<th>Nombre</th>
<th>Hexadecimal</th>
<th>RGB</th>
</tr>
<tr>
<td>DimGray</td>
<td>696969</td>
<td>105,105,105</td>
</tr>
<tr>
<td>IndianRed</td>
<td>CD5C5C</td>
<td>205,92,92</td>
</tr>
<tr>
<td>FireBrick</td>
<td>B22222</td>
<td>178,34,34</td>
</tr>
<tr>
<td>DodgerBlue</td>
<td>1E90FF</td>
<td>30,144,255</td>
</tr>
<tr>
<td>Indigo</td>
<td>4B0082</td>
<td>75,0,130</td>
</tr>
</table>
</body>
</html>
Acá los estilos css:
/*Estilos del ejercicio CU1019D*/
/*Estilos para la tabla en general*/
tr,th,td{padding:20px; width:200px;}
table, tr, th, td{border: black 1px solid; text-align:center; margin: 0 auto;}
/*Color de fondo para la primera fila de la tabla*/
table tr:first-child{background-color:#C9C9C9;}
/*Color DimGray en diversas notaciones para la segunda fila de la tabla*/
table tr:nth-child(2) td:first-child{background-color:dimgray;}
table tr:nth-child(2) td:nth-child(even){background-color:#696969;}
table tr:nth-child(2) td:last-child{background-color:rgb(105,105,105);}
/*Color IndianRed en diversas notaciones para la tercera fila de la tabla*/
table tr:nth-child(3) td:first-child{background-color:indianred;}
table tr:nth-child(3) td:nth-child(even){background-color:#CD5C5C;}
table tr:nth-child(3) td:last-child{background-color:rgb(205,92,92);}
/*Color FireBrick en diversas notaciones para la cuarta fila de la tabla*/
table tr:nth-child(4) td:first-child{background-color:firebrick;}
table tr:nth-child(4) td:nth-child(even){background-color:#B22222;}
table tr:nth-child(4) td:last-child{background-color:rgb(178,34,34);}
/*Color DodgerBlue en diversas notaciones para quinta fila de la tabla*/
table tr:nth-child(5) td:first-child{background-color:dodgerblue;}
table tr:nth-child(5) td:nth-child(even){background-color:#1E90FF;}
table tr:nth-child(5) td:last-child{background-color:rgb(30,144,255);}
/*Color Indigo en diversas notaciones para la última fila de la tabla*/
table tr:last-child td:first-child{background-color:indigo;}
table tr:last-child td:nth-child(even){background-color:#4B0082;}
table tr:last-child td:last-child{background-color:rgb(75,0,130);}
Gracias por la corrección y aclaración.