Computer Science, asked by saniya7326, 5 months ago

3. Write the HTML code to prepare a table
->minimum two columns and four rows
(02) (02) (03)
->color alternative rows with any color

Answers

Answered by TheLegion
2

!DOCTYPE html

< html>

<html>

<body>

<h2> HTML Table</h2>

<table style="width:100%">

<tr>

<th>First column</th>

<th> 2 column</th>

</tr>

<tr>

<td>first row</td>

<td>...</td>

</tr>

<tr>

<td> 2 row </td>

<td>...</td>

</td>

<tr>

<td>3 row</td>

<td>...</td>

</tr>

<tr>

<td> 5 row </td>

<td>...</td>

</td>

</table>

</body>

</html>

Similar questions