Hyper Text Markup Language (HTML) Question:

Download Job Interview Questions and Answers PDF

Why is there extra space before or after my table?

HTML Interview Question
HTML Interview Question

Answer:

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.

Download HTML Interview Questions And Answers PDF

Previous QuestionNext Question
Can I use percentage values for TD WIDTH=... tag?How can I have two sets of links with different colors?