html table creation

html table creation
how to make table using html?

using html you can create a table which is used to format the data, table creation is very easy and simple. in html tables are created using the <html> and </html> tags. basically tables are divided in to rows and columns, rows are define in the <tr> and </tr> tags, while columns are define in the <td> and </td> tags.

table rows are not alone its come with the table column, i mean if you want to write any content then you can not write in the tr tags, you need to write content like text,images,forms,links,nested table inside the td tags. i shows example of one table which will clear you on table in html

Example:

<table border=”1″ width=”100%”>
<tr>
<td>row 1, column 1</td>
<td>row 1, column 2</td>
</tr>
<tr>
<td>row 2, column 2</td>
<td>row 2, column 2</td>
</tr>
<tr>
<td>row 3, column 3</td>
<td>row 3, column 3</td>
</tr>
</table>

if you write above things in the html file and run that file in the browser then you get below output.

 

row 1, column 1 row 1, column 2
row 2, column 2 row 2, column 2
row 3, column 3 row 3, column 3