Why do my table cells not line up in columns?
If rows have different numbers of cells, the browser aligns columns based on the first row's cells. Missing cells in other rows can cause misalignment. Always keep the same number of <td> in each <tr>.
💡 Each row should have the same number of cells for columns to line up (see render_step 5).
Why does adding a <div> inside a <table> break the layout?
Tables expect only <tr> elements directly inside. Adding a <div> breaks the table structure and can cause rendering issues. Use only <tr>, <thead>, <tbody>, <tfoot> inside <table>.
💡 Keep table structure semantic: <table> > <tr> > <td> (render_flow).
Why does my table not have visible borders?
By default, tables have no visible borders. You must add CSS like border or border-collapse to see lines between cells.
💡 Add CSS borders to <table>, <tr>, or <td> to see cell outlines.