Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tables versus divs in mobile websites

I'm totally confused on this matter, some say use tables and others say it's a bad practice to make use of tables and div tags should rather be used. What is the correct way when developing sites for mobile devices .mobi

like image 497
Elitmiar Avatar asked Apr 14 '10 12:04

Elitmiar


1 Answers

You should use tables for presenting tabular data, not for layout. Most modern Web browsers on mobile phones (e.g. Mobile Safari on the iPhone) are quite capable of properly rendering websites that use CSS and semantic markup appropriately.

like image 126
John Topley Avatar answered Sep 24 '22 06:09

John Topley