Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
 
PREVIOUS NEXT
Tagged: #create #table #html #rows #columns
ADD COMMENT
Topic
Name
1+8 =