This tag allows you to display table and filled it with data. It only accepts plain HTML.
<mjml> <mj-body> <mj-section> <mj-column> <mj-table> <tr style="border-bottom:1px solid #ecedee;text-align:left;padding:15px 0;"> <th style="padding: 0 15px 0 0;">Year</th> <th style="padding: 0 15px;">Language</th> <th style="padding: 0 0 0 15px;">Inspired from</th> </tr> <tr> <td style="padding: 0 15px 0 0;">1995</td> <td style="padding: 0 15px;">PHP</td> <td style="padding: 0 0 0 15px;">C, Shell Unix</td> </tr> <tr> <td style="padding: 0 15px 0 0;">1995</td> <td style="padding: 0 15px;">JavaScript</td> <td style="padding: 0 0 0 15px;">Scheme, Self</td> </tr> </mj-table> </mj-column> </mj-section> </mj-body> </mjml>
Here is the following attribute you can use on this element -
color
is the text color.cellpadding
space between cells.cellspacing
space between cell and border.table-layout
sets the table layout. auto/fixed