Website is updated! 06:37 PM 09/01/2015

Pgesturia

Pgesturia

Saturday, 29 November 2014

How to create tables in HTML?

Tables in HTML

In table forming,generally four tags are use.
  1. <table>
  2. <tr>
  3. <td>
  4. <th>
<tr> tag is used for creating new row.
<th> tag is used for creating new heading.
<td> tag is used for entring new data.

RowSpan

It is not so difficult to understand. RowSpan means
to combine multiple rows to form new row.Its value
can be defined in to the tag.

ColSpan

It is not so difficult to understand.ColSpan means
to combine multiple column to form new column.Its value
can be defined in to the tag.

Making of table in HTML

An example shows how to make table using HTML.
<table>
<tr>
<th rowspan=2>Name
<th colspan=3>Marks
</tr>
<tr>
<th>MS Excel
<th>Powerpoint
<th>Word
</tr>
<tr>
<td>Ali
<td>79
<td>85
<td>92
</tr>
</table>

Output:


Name Marks
MS Excel PowerPoint Word
Ali 79 8592

  • Example of ROW-SPAN and COL-SPAN is mention above.


0 comments: