In order to do this you need to first copy all of the template fields you're going to use.
Then copy the following:
<table class="table table-striped">
<thead>
<tr>
<th>Table Heading One</th>
<th>Table Heading Two</th>
</tr>
</thead>
<tbody>
<tr> <td>Item 1</td> <td>Insert a Template Field here</td> </tr>
</tbody>
</table>
If you copy and past the above into an answer it will create a table that looks like this:
Table Heading One |
Table Heading Two |
Item 1 |
Insert a Template Field here |
Each line marked <th> is a table heading.
Each line marked <tr> is a table row.
Each bit marked <td> is a field inside the table. The number of <td> sections in a row needs to match the number of <th> elements there are. I.e. if you have three headings, you need to have three sections in each row that correspond to each heading.
You can play with building tables and seeing the outcome here.
Example
To provide an example of table provide this is a mini-statement of account for the Capita back office Council Tax application:
<table class="table table-striped">
<thead>
<tr>
<th>Transaction Description</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr> <td>Total Charge</td> <td>${TransactionDetail.Statement.TotalDebit.ToString("C")}</td> </tr>
<tr> <td>Less Discounts</td> <td>${TransactionDetail.Statement.TotalAllowances.ToString("C")}</td> </tr>
<tr> <td>Less Benefit</td> <td>${TransactionDetail.Statement.TotalBenefit.ToString("C")}</td> </tr>
<tr> <td>Less Payments</td> <td>${TransactionDetail.Statement.TotalPayments.ToString("C")}</td> </tr>
<tr> <td>Less Write Offs</td> <td>${TransactionDetail.Statement.TotalWriteOff.ToString("C")}</td> </tr>
<tr> <td>Refunds</td> <td>${TransactionDetail.Statement.TotalRefunds.ToString("C")} </td> </tr>
<tr> <td>Recovery Costs</td> <td>${TransactionDetail.Statement.TotalCosts.ToString("C")}</td> </tr>
<tr class="info"> <td><strong>Balance</strong></td> <td><strong>${TransactionDetail.Statement.NetBalance.ToString("C")} </strong></td> </tr>
</tbody>
</table>
The above creates a table like this:
Transaction Description |
Amount |
Total Charge |
£1,277.95 |
Less Discounts |
£0.00 |
Less Benefit |
£0.00 |
Less Payments |
-£1,277.95 |
Less Write Offs |
£0.00 |
Refunds |
£0.00 |
Recovery Costs |
£0.00 |
Balance |
£0.00 |
So it can be very useful for showing lots of data in a clear intelligible manner.