Why div not table




















Search engines and spiders don't care one way or another. Search engines look for content on the pages and not the HTML code; for that matter, even the pages which are not HTML coded properly or W3C valid still get indexed and rank in search engines. Last year after Google announced PageSpeed is going to be one of the factors for ranking in Google Search. Web developers started optimizing their web pages by applying web performance best practices, and also started avoiding TABLEs on their website and use DIVs instead.

CSS move the styling code off-page and into an external file, thereby keeping page sizes as minimal as possible. DIVs offer more flexibility and you can change the layout of the complete site by just changing a few things in the CSS file s. TABLEs are the correct technology for tabular data.

DIVs are the correct technology for page layout and defining objects on the page along with other block-level objects, i. Use them both and use them well. Bottom line: each element has a clear purpose and should be used appropriately. In addition, good semantic design which means no TABLEs for layout offers many benefits for maintainability and adaptability. In my experience it wont take more time if u knoe what u are doing. Guffa Guffa k gold badges silver badges bronze badges. I tell you my personal main reasons for using divs: Tables have just a static grid whereas divs are dynamic: A table's first row defines all cols like in MS Excel.

Hope it helps. David 10K David 10K 2 2 silver badges 13 13 bronze badges. Patrick Swanson Patrick Swanson 1 1 1 bronze badge. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end.

Does ES6 make JavaScript frameworks obsolete? Featured on Meta. Now live: A fully responsive profile. Linked Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Can anyone explain me what is the advantage of using Div tags instead of using Table? If div tag is good then why Photoshop useses Table to put graphics images together… Please give some explanation and i am also a new learner… thanks in advance….

David Siegel David is the guy responsible for layout tables. So the moral of the story is , we have to use DIv tags instead of table … But here is one more… link: mediafire. I would think the moral of the story is using the right tag for the right job.

Read this:. Using the right tag for the job? Because none of that is text or a simple image? I am just trying to understand the whole idea of semantics here and whatnot. Will continue my journey here… thanks. Next Recommended Reading. Windows 10 Vs Windows Visual Studio Vs Visual Studio Understanding Matplotlib With Examples.

Understanding Numpy With Examples. C Evolution. Everything That Every. Understanding Pandas With Examples.



0コメント

  • 1000 / 1000