- Use the HTML <table> element to define a table.
- Use the HTML <tr> element to define a table row.
- Use the HTML <td> element to define a table data.
- Use the HTML <th> element to define a table heading.
- Use the HTML <caption> element to define a table caption.
- Use the CSS border property to define a border..
<table border="1">
<tr>
<th colspan="3">Heading1</th>
</tr>
<tr>
<td>Row2 cell1</td>
<td>Row2 cell2</td>
<td>Row2 cell3</td>
</tr>
<tr>
<td>Row3 cell1</td>
<td>Row3 cell2</td>
<td>Row3 cell3</td>
</tr>
</table>
<table border="1">
<tr>
<td>Row1 Cell1</td>
<td>Row1 Cell2</td>
<td>Row1 Cell3</td>
</tr>
<tr>
<td>Row2 Cell1</td>
<td>Row2 Cell2</td>
<td>Row2 Cell3</td>
<tr>
<td>Row3 Cell1</td>
<td>Row3 Cell2</td>
<td>Row3 Cell3</td>
</tr>
</table>
<table border="1">
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Row2 Cell1</td>
<td>Row2 Cell2</td>
<td>Row2 Cell3</td>
</tr>
<tr>
<td>Row3 Cell1</td>
<td>Row3 Cell2</td>
<td>Row3 Cell3</td>
</tr>
</table>
<table border="1">
<tr>
<th colspan="3">Heading 1</th>
</tr>
<tr>
<td rowspan="2">Row span</td>
<td>Row2 Cell1</td>
<td>Row2 Cell2</td>
</tr>
<tr>
<td>Row3 Cell1</td>
<td>Row3 Cell2</td>
</tr>
</table>




Oh that's it? Thank you! Your blog can be an advantage, so helpful.
ReplyDeleteNice!
ReplyDeleteCool!
ReplyDeleteOh this blog is full in information!
ReplyDeleteNicely organized and neat the colors blended together
ReplyDeleteThanks for the info!
ReplyDeleteThe back has nicely touch and the code have more information on basics of CSS and HTML
ReplyDeleteBackground I meant
ReplyDeleteNice blog very helpful
ReplyDeleteThis gives me an idea to create a better table
ReplyDelete