How to create simple table? [html table]
in Shortcodes
If you want to make plain table, you must use html tags as below:
<table>or:
<thead>
<tr>
<th>Employee</th>
<th>Salary</th>
<th>Bonus</th>
<th>Supervisor</th>
</tr>
</thead>
<tbody>
<tr>
<td>Stephen C. Cox</td>
<td>$300</td>
<td>$50</td>
<td>Bob</td>
</tr>
<tr>
<td>Josephin Tan</td>
<td>$150</td>
<td>-</td>
<td>Annie</td>
</tr>
<tr>
<td>Joyce Ming</td>
<td>$200</td>
<td>$35</td>
<td>Andy</td>
</tr>
<tr>
<td>James A. Pentel</td>
<td>$175</td>
<td>$25</td>
<td>Annie</td>
</tr>
</tbody>
</table>
<table>Of course you can create them your own way but this is how we made them on our demo website.
<thead>
<tr>
<th class="clear"></th>
<th>Salary</th>
<th>Bonus</th>
<th>Supervisor</th>
</tr>
</thead>
<tbody>
<tr>
<th>Stephen C. Cox</th>
<td>$300</td>
<td>$50</td>
<td>Bob</td>
</tr>
<tr>
<th>Josephin Tan</th>
<td>$150</td>
<td>-</td>
<td>Annie</td>
</tr>
<tr>
<th>Joyce Ming</th>
<td>$200</td>
<td>$35</td>
<td>Andy</td>
</tr>
<tr>
<th>James A. Pentel</th>
<td>$175</td>
<td>$25</td>
<td>Annie</td>
</tr>
</tbody>
</table>
Comments