I am not sure which Invoice example you are looking at, but a table footer should work. You need to specify <tfoot>...</tfoot> just as you would for a table header.
Note that (as per HTML spec) the <tfoot> must be written after the <thead> and before the <tbody> part.