Ejercicio 1
Ejercicio 1
Ejercicio 2
<!DOCTYPE html>
<html>
<head>
<title>Tablero de Ajedrez</title>
<style>
border-collapse: collapse;
margin: 20px;
td {
width: 50px;
height: 50px;
text-align: center;
font-size: 24px;
font-weight: bold;
.blanco {
background-color: #FFFFFF;
.negro {
background-color: #808080;
color: #FFFFFF;
th {
width: 50px;
height: 50px;
text-align: center;
font-size: 24px;
font-weight: bold;
</style>
</head>
<body>
<h1>Tablero de Ajedrez</h1>
<table>
<thead>
<tr>
<th></th>
<th>a</th>
<th>b</th>
<th>c</th>
<th>d</th>
<th>e</th>
<th>f</th>
<th>g</th>
<th>h</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th><%=f %></th>
<% } %>
<th><%=f %></th>
</tr>
<% } %>
</tbody>
<tfoot>
<tr>
<th></th>
<th>h</th>
<th>g</th>
<th>f</th>
<th>e</th>
<th>d</th>
<th>c</th>
<th>b</th>
<th>a</th>
<th></th>
</tr>
</tfoot>
</table>
</body>
</html>
S