Tuesday, January 8, 2019

How to Create Tables in Html

Tables are powerful tools to show and relate a specific type of information.

Basic Table Tags
<table></table> For the netire table
<tr></tr> For table row
<td></td> For table cell
<th></th> For table cell and column heading



To create  a one row table, type the following table structure in HTML

<table>
<tr>
<td>Cell(2)</td>
<td>Cell(2)</td>
<td>Cell(2)</td>
</tr>
</table>


To create multiple rows in a table with a border line:

<table border="1">
<tr>
<td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
<td>Row 1 Cell 3</td>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
</tr>
<tr>
<td>Row 3 Cell 1</td>
<td>Row 3 Cell 2</td>
<td>Row 3 Cell 3</td>
</tr>
</table>


To create tables with heading

<table border="1">
<tr>
<th> Heading 1</th>
<th> Heading 2</th>
<th> Heading 3</th>
</tr>
<tr>
<td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td>
</tr>
<tr>
<td>Row 3 Cell 1</td>
<td>Row 3 Cell 2</td>
<td>Row 3 Cell 3</td>
</tr>
</table>

30 comments:

  1. at first i think it's hard but now I know how!

    ReplyDelete
  2. i suggest it'S better to have a example picture of it!

    ReplyDelete
  3. this is a nice kind of content!

    ReplyDelete
  4. every people who will see your blog will learn a lot.

    ReplyDelete
  5. it's a must that we have a little knowledge about html!

    ReplyDelete
  6. it is really a need for a student like me

    ReplyDelete
  7. keep it up spreading information

    ReplyDelete
  8. i hope next time you add more codes

    ReplyDelete
  9. this lesson is interesting for a blogger like me

    ReplyDelete
  10. this blog gives a lot of info and i think it is really a must

    ReplyDelete
  11. Now I can create tables in html thanks for the info

    ReplyDelete