This is often caused by invalid HTML syntax. Specifically, it is often caused by loose content within the table (i.e., content that is not inside a TD or TH element). There is no standard way to handle loose content within a table. Some browsers display all loose content before or after the table. When the loose content contains only multiple line breaks or empty paragraphs, then these browsers will display all this empty space before or after the table itself.The solution is to fix the HTML syntax errors. All content within a table must be within a TD or TH element.
HTML
Topic: Tables
Why is there extra space before or after my table?
Browse random answers:
How to create tables in an HTML document?
Can I use percentage values for <TD WIDTH=...>?
Explain the <th> tag?
Can I nest tables within tables?
Why doesn't <TABLE WIDTH="100%"> use the full browser width?
Why is there extra space before or after my table?
How do I align a table to the right (or left)?
How can I use tables to structure forms?
How do I center a table?
Why doesn't <TABLE WIDTH="100%"> use the full browser width?
Why is there extra space before or after my table?
What are the differences between cell spacing and cell padding?
How do I align a table to the right (or left)?
How can you provide heading to a table?
How to have a table cell that spans two columns in HTML?
What is the relationship between the border and rule attributes?