Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/myscript/public_html/classes/classdb.php on line 42
HTML Tutorial - Table for beginners - help

Creating HTML Table - Help

Creating html tables!

Explanation

Table is most beautiful concept in html.
Now a days, most of the websites are created using table structure.
The concept of table is very simple, just rows and columns.
We will split the window in to so many number of rows and columns as required.
Table

This tag can not act alone. It needs "tr" and "td" tags with in it.Example :
<table> </table>

As we know that table is a set of rows and columns, we introduce rows inside the table using
<tr> </tr>.
Also each row can have any number of columns. one to n..., so we introduce columns inside the rows using the tags <td> </td>
So putting things together we define a table with a row and column as follows

Example Code


<table>
<tr>
<td> This is first column
</td>
</tr>
</table>
Result :
The result for above tag will be as
This is first column

Now we will create a table with one row and two columns

Example Code


<table>
<tr>
<td>
This is first column
</td>
<td>
This is second column
</td>
</tr>
</table>
Result :
The result for above tag will be as
This is first column This is second column

PreviousNext

HTML Basic


Ask Questions

Ask Question