Answers for "html table row with one 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
2

html table span 2 rows

<td colspan="2">Content here</td> // or...
<td rowspan="2">Content here</td>
Posted by: Guest on July-03-2020

Code answers related to "html table row with one column"

Browse Popular Code Answers by Language