As I analyze web pages I notice that Tables are used for positioning, but vary from page to page in the way they are used.
Ex. 1 Is it better to use 100% (for the main table, like this page) for the width of the page instead of a fixed length like 820? I prefer 100% because it will expand to fit in the browser.
Ex. 2 How do you know to use another <table> instead of another <tr><td>? Is it a matter of style? There are some pages that use a lot of tables inside other tables. Is there such a thing as too many tables? You also have the situation where you have a table, then a <td> and a table inside that cell, then another table, <td> . . . etc. Some of these pages nest the <table> and <td> tags so deep that it is sometimes hard to find the beginning and ending tags.
Are they any basic rules that are considered good practice when using tables?
I would be interested in anyone’s comments.
Ex. 1 Is it better to use 100% (for the main table, like this page) for the width of the page instead of a fixed length like 820? I prefer 100% because it will expand to fit in the browser.
Ex. 2 How do you know to use another <table> instead of another <tr><td>? Is it a matter of style? There are some pages that use a lot of tables inside other tables. Is there such a thing as too many tables? You also have the situation where you have a table, then a <td> and a table inside that cell, then another table, <td> . . . etc. Some of these pages nest the <table> and <td> tags so deep that it is sometimes hard to find the beginning and ending tags.
Are they any basic rules that are considered good practice when using tables?
I would be interested in anyone’s comments.