TL;DR: Will you choose tables for phonegap application layout as it provides easy way for resolution independence? Since my html is not going to be parsed by search engines/screen readers, having somewhat incorrect semantic html is ok IMO.
Please don't confuse this question with DIV's vs. Tables or CSS vs. Being Stupid or Why is using DIVs or spans tags "better" than using a table layout? or any other Div vs Table question since this is in phonegap app's context.
I know tables should only be used for tabular data & have gone through numerous articles explaining it. I am wondering specifically in the context of phonegap application, will it be easier to use tables for providing basic structure to the application.
I have created basic application structure using tables & divs. Here's jsfiddle: Layout using Table & Layout using div
Specifically, when I use table, I don't have to worry about calculating height of
<tr id="content-area"><td></td></tr>
. Browser will calculate its height dynamically depending on "navbar" display. With div's, I have to worry about "content-area"'s height & it also becomes difficult to specify height in percentage when there are other elements in the container of which height is in pixels. e.g. navbar. In this case, browser handles good amount of calculations which otherwise I will have to do in javascript to achieve resolution independence.