Which tag defines the row of table in HTML?
Answers
Answered by
15
Explanation:
For defining the row of table in HTML we use <tr>tag
How to create:-
- First we have to code basic format of HTML (co ded)
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
</head>
<body>
</body>
</html>
- Then we have to use <tr>tag first to create the row of the table .(coded)
<tr></tr>
- Then we have to use mix of the codes given below.
<th></th> (header cell)
<td></td> (data cell)
I coded a demo to let you understand better
Code:-
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables</title>
</head>
<body>
<table border = "1">
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
</tr>
</table>
</body>
</html>
Output attached
Attachments:
Similar questions
Math,
2 months ago
Math,
2 months ago
Social Sciences,
4 months ago
Math,
10 months ago
Math,
10 months ago