422,757 Members | 1,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 422,757 IT Pros & Developers. It's quick & easy.

how to make a two column and row?

P: 1
i didn't know how to make a column and row on html. thank you for answering
Sep 12 '17 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,731
Check out this w3schools documentation for the HTML Table.

An HTML table is defined with the <table> tag. Each table row is defined with the <tr> tag. A table header is defined with the <th> tag. By default, table headings are bold and centered. A table data/cell is defined with the <td> tag.

For example:

This HTML for a table:
Expand|Select|Wrap|Line Numbers
  1.  <table style="width:100%">
  2.   <tr>
  3.     <th>Firstname</th>
  4.     <th>Lastname</th>
  5.     <th>Age</th>
  6.   </tr>
  7.   <tr>
  8.     <td>Jill</td>
  9.     <td>Smith</td>
  10.     <td>50</td>
  11.   </tr>
  12.   <tr>
  13.     <td>Eve</td>
  14.     <td>Jackson</td>
  15.     <td>94</td>
  16.   </tr>
  17. </table>
Will result in this being displayed:
Expand|Select|Wrap|Line Numbers
  1. Firstname     Lastname     Age
  2. Jill          Smith        50
  3. Eve           Jackson      94
Sep 12 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.