Create an html document for a table which contains two rows and two columns with the help of tr and td tag
Answers
Answered by
1
TR defines the table row and TD defines table data which is entered.
Attachments:
Answered by
0
Answer:
- The following html document will create a table which contains two rows and two columns with the help of tr and td tag.
<html>
<style>
table, th, td {
border:2px solid red;
}
</style>
<body>
<head>
<title>HTML Tables</title>
</head>
<table border = "1">
<tr>
<th>Name</th>
<th>Contact</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>99999999</td>
</tr>
<tr>
<td>Gergy Mathews</td>
<td>98889999</td>
</tr>
</table>
</body>
</html>
Explanation:
- The HTML table is created using the <table> tag.
- In table tag, the <tr> tag is used to create table rows.
- In table tag, <td> tag is used to create cells or columns inside a row.
- All elements under <td> tag are regular and they are left aligned by default.
To know more about HTML tags, click here ->
https://brainly.in/question/2452467
https://brainly.in/question/18624559
Similar questions