I know the subject line is really bad. Here is the real question: we
have a web application that lists 1200 products. The web page present
only 12 products at once, if you wish to see the next 12 products, click
next page or the page index. This is a very common case.
e.g. (use fixed-width font for the following)
[Previous Page] [1] [2] [3] ... [98] [99] [100] [Next page]
Product A $2000 (after tax) Product A Description Goes Here
Product B $2000 (after tax) Product B Description Goes Here
Product C $2000 (after tax) Product C Description Goes Here
Product D $2000 (after tax) Product D Description Goes Here
Product E $2000 (after tax) Product E Description Goes Here
Product F $2000 (after tax) Product F Description Goes Here
Product G $2000 (after tax) Product G Description Goes Here
Product H $2000 (after tax) Product H Description Goes Here
Product I $2000 (after tax) Product I Description Goes Here
Product J $2000 (after tax) Product J Description Goes Here
Product K $2000 (after tax) Product K Description Goes Here
Product L $2000 (after tax) Product L Description Goes Here
[Previous Page] [1] [2] [3] ... [98] [99] [100] [Next page]
The question is, how to best organize HTML for such page.
I stared with this solution:
<p>[Previous Page] [1] [2] [3] ... [98] [99] [100] [Next page]</p>
<table>
<tbody>
....
</tbody>
</table>
<p>[Previous Page] [1] [2] [3] ... [98] [99] [100] [Next page]</p>
It works fine. I just wonder if there are better ways to organize this?
My question is the use of <pdoesn't seems to be appropriate and there
are no better tags I can think of for this.
have a web application that lists 1200 products. The web page present
only 12 products at once, if you wish to see the next 12 products, click
next page or the page index. This is a very common case.
e.g. (use fixed-width font for the following)
[Previous Page] [1] [2] [3] ... [98] [99] [100] [Next page]
Product A $2000 (after tax) Product A Description Goes Here
Product B $2000 (after tax) Product B Description Goes Here
Product C $2000 (after tax) Product C Description Goes Here
Product D $2000 (after tax) Product D Description Goes Here
Product E $2000 (after tax) Product E Description Goes Here
Product F $2000 (after tax) Product F Description Goes Here
Product G $2000 (after tax) Product G Description Goes Here
Product H $2000 (after tax) Product H Description Goes Here
Product I $2000 (after tax) Product I Description Goes Here
Product J $2000 (after tax) Product J Description Goes Here
Product K $2000 (after tax) Product K Description Goes Here
Product L $2000 (after tax) Product L Description Goes Here
[Previous Page] [1] [2] [3] ... [98] [99] [100] [Next page]
The question is, how to best organize HTML for such page.
I stared with this solution:
<p>[Previous Page] [1] [2] [3] ... [98] [99] [100] [Next page]</p>
<table>
<tbody>
....
</tbody>
</table>
<p>[Previous Page] [1] [2] [3] ... [98] [99] [100] [Next page]</p>
It works fine. I just wonder if there are better ways to organize this?
My question is the use of <pdoesn't seems to be appropriate and there
are no better tags I can think of for this.
Comment