Day 3
How to create a table in HTML
First we need to know html elements
table, tr, td, th, thead, tbody
Table elements are the elements used initially to create a table.
tr Means Table Row हो।
th Means Table Header हो।
td Means Table Description हो।
thead Means Table Heading हो भनी tbody Means Table Body हो।
Now looking at it in a practical way.
<body>
<table>
<tr>
<th>This is Table Header 1</th>
<th>This is Table Header 2</th>
</tr>
<tr>
<td>This is Table Description 1</td>
<td>This is Table Description 2</td>
</tr>
</table>
</body>
<table>
<tr>
<th>This is Table Header 1</th>
<th>This is Table Header 2</th>
</tr>
<tr>
<td>This is Table Description 1</td>
<td>This is Table Description 2</td>
</tr>
</table>
</body>
Note :
<table border ="1"> should be written otherwise it will not show in the table.
The th key is used when writing the Heading Topic of the table, the td key is then used, while the tr key is used to remove one of the Columns.
Your Computer Project Task
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Comments
Post a Comment