We would like to know how to place html table inside div.
<!DOCTYPE html>
<html>
<head>
</head><!-- ww w.j a v a 2 s .co m-->
<body>
<div style="width: 920px; background: #c0c0c0; height: 500px;">
<table style="width: 100%; background: red;" border="1">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
</body>
</html>
The code above is rendered as follows: