Tables Tutorial | WAI W3C
This page goes over creating accessible tables with multiple headers, different sized rows and columns, and other irregularities. There's some work that goes into making tables accessible and many LMSs do not use good defaults (for example, Canvas does not add a header row to tables by default).