Rohit, a student of Class X, wants to represent a table in webpage but he is unaware about the table tags. Explain him the role of and tag. Write HTML code of a table and show the use of  and tag.

7 views

1 Answers

< tr> : defines table row.

< td> :  defines table data/cell.

HTML Code

< tr>

< td> 1

< td> ajay

< td> Arts

< /tr>

< tr>

< td> 2

< td> vijay

< td>Commerce

< /tr>

< /table>

7 views