HTML Table का उदाहरण :
First Name
|
Last Name
|
Points
|
Jill
|
Smith
|
50
|
Eve
|
Jackson
|
94
|
John
|
Doe
|
80
|
Adam
|
Johnson
|
67
|
<table
border="1">
<tr> <th>Header 1</th> <th>Header 2</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> |
|
उपयुक्त HTML code को
browser मे इस तरह देखा जा सकता है :
Header 1
|
Header 2
|
row 1, cell 1
|
row 1, cell 2
|
row 2, cell 1
|
row 2, cell 2
|
HTML Table Tags
Tag
|
Description
|
<table>
|
Defines a table
|
<th>
|
Defines a header cell in
a table
|
<tr>
|
Defines a row in a table
|
<td>
|
Defines a cell in a table
|
<caption>
|
Defines a table caption
|
<colgroup>
|
Specifies a group of one
or more columns in a table for formatting
|
<col>
|
Specifies column
properties for each column within a <colgroup> element
|
<thead>
|
Groups the header content
in a table
|
<tbody>
|
Groups the body content
in a table
|
<tfoot>
|
Groups the footer content
in a table
|
0 comments:
Post a Comment