Replicating table functionality in HTML