Tables and CSS for positioning and design

Duplicate: Tables instead of div and Why not use tables for layout in HTML?

I am working on creating a web application using ASP.NET MVC (should work on IE 7, FF 3.0). Does it matter if I use tables and not css for positioning and design?


As a developer, I did not have the opportunity to work with css.

+3
source share
4 answers

Yes, it is important. The most convincing argument I used in favor of CSS over tables is that screen readers (for the visually impaired) tour the table layout. This is a good argument in itself, but it gets much better when you take into account the fact that Google reads your website in the same way as a screen reader. If you want it easier on Google to index your site, use CSS for the layout. Tables are for tabular data.

+4
source

Use tables when you really want to display tabular data.

Otherwise, you really need to use CSS for your layout.

The main reason is that CSS works better for "fancy" browsers, such as:

  • Mobile browsers / smartphones
  • Search engines
  • Readers for the visually impaired

If you work for the US government, the last one is a legal requirement.

Also see the following questions:
Tables instead of DIVs
Why not use tables for placement in HTML?

+2
source

Besides all the โ€œtables of the evilโ€ school of thought, it will be much easier for you to change the design in the future if you use a clean css layout.

In addition, your mark will be much simpler and easier to "read".

Take a look at css. It does not take more than a day to accelerate.

+2
source

Yes, if the user interface of the application must be high-level. Not if you're just learning to master some adhoc concept or come up with a quick prototype. The benefits of CSS and tables are well discussed. Using CSS makes a website more flexible and accessible, look at the CSSZen garden.

HTML DOCTYPE declaration and validation, on the other hand, are equally important. So you donโ€™t spend time on styles of styles for each browser

+1
source

All Articles