Q1. Write a HTML code for 2×2 Table and fill different color in each cell.
Answer:-
<!DOCTYPE html>
<html>
<head>
<Example of table cell>
</head>
<body>
<Table border="1" border color="brown">
<Tr>
<Td width="20" bgcolor="red"> </td>
<Td width="20" bgcolor="green"> </td>
</Tr>
<Tr>
<Td width="20" bgcolor="blue"> </td>
<Td width="20" bgcolor="yellow"> </td>
</Tr>
</Table>
</body>
</html>
No comments:
Post a Comment