Computer Science, asked by ss2749512, 1 year ago

Write the procedure to creat a 2*2 table in html

Answers

Answered by sam777
15

First open the table  <table>

Open the first row with the tr tag  <tr>

Open the first column with the td tag  <td>

Write the contents of the cell

Close the first cell and open the second  </td><td>

Write the contents of the second cell

Close the second cell and close the row  </td></tr>

Write the second row exactly as the first

<tr><td> </td><td> </td></tr>

Then close the table m</table>

That's it!

You could also choose to add table headers to your table using the  <th>  element. These table headers would replace the "table data" pieces in the first table row, like this:<table>

<tr>

<th>Name</th>

<th>Role</th>

</tr>

<tr>

<td>Jeremy</td>

<td>Designer</td>

 </tr>

<td>Jennifer</td>

<td>Developer</td>

<tr>

</tr>  

</table>

Answered by nalinsinghns07
11

Answer:

here is the answer hope you like it

Explanation:

(i) First open the table  <table>

(ii) Open the first row with the tr tag  <tr>

(iii) Open the first column with the td tag  <td>

(iv) Write the contents of the cell

(v) Close the first cell and open the second  </td><td>

(vi) Write the contents of the second cell

(vii) Close the second cell and close the row  </td></tr>

(viii) Write the second row exactly as the first

<tr><td> </td><td> </td></tr>

(ix) Then close the table m</table>

Hope it helps

Similar questions