Results 1 to 4 of 4

Thread: Div v/s Table Tags

  1. #1
    Join Date
    Aug 2006
    Location
    Mumbai, India
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Div v/s Table Tags

    Many of my friends are using div tags instead of table tags , what are the strong reasons for using div tags, why div tags are more superior than table tags. - DEEPAK

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    If you need to represent tabular data in your web page then table is the best solution or rather we can say that tables are for representing tabular information in web pages.

    But if you try to use tables for web page layouting purpose the whole scene changes, tables are not supposed to do layouting but in the old times web developers used tables for that purpose. What I am saying is you can achieve some kind of layouting through tables (without any doubt) but the markup associated with a table(s) will be huge compared to a table less layout.

    You can find more reasons to use table less layouts in your web pages in the following location:

    http://www.stopdesign.com/present/20...e/tables/?no=4

    Hope this helps

  4. #4
    Join Date
    Sep 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    tables for tabular data.. div for layout...

    designing using that format will allow you to use a separate css file for mobile browsers and for printing much easier. and the divs will allow you to structure your site to take advantage of placing your more relevant content near the top of the code. lastly div's are beneficial when it comes to meeting accessibility standards, again mostly to do with how you structure the pages divs allow you to intelligently layout the code to make it easier for speech browsers also.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •