Tables in HTML
In table forming,generally four tags are use.
- <table>
- <tr>
- <td>
- <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 | 85 | 92 |
0 comments:
Post a Comment