1.

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 <tr>and <td>tag. Write HTML code of a table and show the use of <tr> and <td> tag.

Answer»

< tr> : defines table row.

< td> :  defines table data/cell.

HTML Code

<table>

< tr>

< td> 1</td>

< td> ajay</td>

< td> Arts</td>

< /tr>

< tr>

< td> 2</td>

< td> vijay</td>

< td>Commerce</td>

< /tr>

< /table>



Discussion

No Comment Found

Related InterviewSolutions