Exercises · Q12
Q.Write HTML to display a table with the heading row "Roll" and "Name" and one data row "1" and "Rina". Also state which tags create
(i) a row and
(ii) a heading cell.
ChseodishaTextbookSubjectiveImportance★★★★★est
86% · 12/14 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →HTML for the table:
<table border="1">
<tr>
<th>Roll</th>
<th>Name</th>
</tr>
<tr>
<td>1</td>
<td>Rina</td>
</tr>
</table>
How it is built (order: table → row → cells):
<table border="1">starts the table; the attributeborder="1"draws grid lines around the cells.<tr> ... </tr>defines a table row. Here there are two rows — a heading row and a data row.<th> ... </th>defines a heading cell — its text appears bold and centred by default. The heading row uses<th>Roll</th>and<th>Name</th>.<td> ... </td>defines a table data cell — the ordinary cells. The data row uses<td>1</td>and<td>Rina</td>. …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.