Answers for "html types of table row and column"

1

create a table in html with 3 rows and 4 columns

<table>
  <caption>Item Cart</caption>
  <thead>
    <tr>
      <th scope="col">ID</th>
      <th scope="col">Item</th>
      <th scope="col">Price</th>
      <th scope="col">Quantity</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">1</th>
      <th>Banana</th>
      <td>$1.00</td>
      <td>3</td>
    </tr>
    <tr>
      <th scope="row">2</th>
      <th>Burger</th>
      <td>$6.90</td>
      <td>1</td>
    </tr>
    <tr>
      <th scope="row">3</th>
      <th>Cookie</th>
      <td>$4.20</td>
      <td>4</td>
    </tr>
  </tbody>
</table>
Posted by: Guest on March-19-2022
1

table row html

<table>
	<tr> <!-- Table Row - 1 -->
    	<td>Column 1</td>
        <td>Column 2</td>
    </tr>
	<tr> <!-- Table Row - 2 -->
    	<td>Column 1</td>
        <td>Column 2</td>
    </tr>
</table>
Posted by: Guest on March-14-2022

Browse Popular Code Answers by Language