Create an HTML Table
Rows, column headers aur data cells ke saath simple structured table banao.
Working code
<table>
<caption>Course Progress</caption>
<thead>
<tr>
<th scope="col">Course</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>HTML</td>
<td>Complete</td>
</tr>
<tr>
<td>CSS</td>
<td>Learning</td>
</tr>
</tbody>
</table>Preview
| Course | Status |
|---|---|
| HTML | Complete |
| CSS | Learning |
How it works
<table> tabular data contain karta hai; <tr> row, <th> header aur <td> data cell define karte hain.
caption table ka purpose describe karta hai aur scope="col" column headers ko clarify karta hai.
Try Yourself
<table>
<caption>Quiz Scores</caption>
<tr>
<th scope="col">Topic</th>
<th scope="col">Score</th>
</tr>
<tr>
<td>HTML</td>
<td>9/10</td>
</tr>
</table>