Detailed explanation for you, div+css layout and table layout advantages and disadvantages (classic)

Source: Internet
Author: User
Table layout is the beginning of the web when the early CSS does not exist, is the informal use of table tags, table tags are tables, is used to display data, rather than to layout the page, although it is sometimes easy to layout the page. The vast majority of sites are now using div+css layouts. Each of these two layouts has its advantages.

First, the advantages of DIV+CSS layout:

1. In line with the standards, the code structure is clear, the structure, style and behavior of the separation, resulting in good enough maintainability.

2. The layout is precise and the layout of the website is easy to modify.

3. Speed up the loading of the page (most important) (in IE, the entire table is loaded before the content is displayed).

4. Save the space occupied by the site and the traffic of the site.

5. Use HTML that contains only structured content instead of nested tags to improve search efficiency for Web pages in other search engines.

Second, the Table layout benefits (table layout is not a little use no, this is beyond doubt)

1. Easy to get started.

2. Can form complex changes, simple and fast.

3. The performance of the more "rigorous", in different browsers can be very good compatibility.

The above is my div+css layout and table layout of the advantages and disadvantages, I hope that in the future will be helpful to everyone.

Related articles:

Simple and easy to understand, DIV+CSS architecture website of 7 layout forms, gave away

A detailed explanation of the position positioning of the page layout

Detailed introduction to CSS page layout tips

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.