Prompted by a meta answer, here is an HTML page I'm deliberating over in JSBIN and I would like your review, please.
I am not looking to implement the logic, just please focus on HTML & CSS.
Are tables a good candidate to mark up purchase items? I've seen this implemented as a list in each column, which I thought was worse.
How can I best add markup and style to the final total?
There is a known issue with the CSS border. I'm not asking for you to fix that, but I'm telling you because there is a comment in my code that could possibly make it sound broken. Any other good tips or examples would be great.
td, th { text-align: right; }
tr th:first-child, tr td:first-child { text-align: left; }
tbody tr:last-child td { font-weight: bold; }
table { border-collapse: collapse; }
tbody tr:last-child { border-top: thick black solid; }
<table>
<thead>
<tr>
<th>Description</th>
<th>Quantity</th>
<th>Rate</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>Moon cakes</td>
<td>5</td>
<td>100</td>
<td>500</td>
</tr>
<tr>
<td>Super biscuits</td>
<td>1</td>
<td>500</td>
<td>500</td>
</tr>
<tr>
<td></td>
<td>Total value</td>
<td></td>
<td>1000</td>
</tr>
</tbody>
</table>