Home  >  Article  >  Web Front-end  >  What is the difference between DIV+CSS and table?

What is the difference between DIV+CSS and table?

云罗郡主
云罗郡主forward
2018-11-14 17:22:522624browse

The content of this article is about the difference between DIV CSS and table. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

DIV CSS is one of the commonly used terms in website standards (or "WEB standards"). It is usually used to explain the difference from the table positioning method in the HTML web design language, because the XHTML website design standard In , table positioning technology is no longer used, but DIV CSS is used to achieve various style production and positioning.

div is an element in html (hypertext language). div css is a web page layout method. This web page layout method is different from the traditional table layout and truly achieves the content and content of w3c. Show phase separation.

div is a tag css is a cascading style sheet (css style)

DIV CSS advanced layout has gradually become popular, but the so-called DIV CSS layout makes people more worried, don’t let it DIV has become a substitute for Table. Multi-layer nested DIV will seriously affect the readability of the code. Let's make use of the tags provided by HTML.

DIV CSS features:

1. Comply with W3C standards. Microsoft and other companies are W3C supporters. This is the most important, as it ensures that your website will not be obsolete due to future web application upgrades.

2. Support browser backward compatibility, that is, no matter whether IE7 or Firefox wins the browser war in the future, your website will be very compatible.

3. Search engines are more friendly. Compared with traditional tables, web pages using DIV CSS technology are more friendly to search engines.

4. Style adjustment is more convenient. The separation of content and style makes page and style adjustments more convenient. Nowadays, international portals such as YAHOO and MSN, domestic portals such as NetEase and Sina, and mainstream WEB2.0 websites all adopt the DIV CSS framework model, which further confirms that DIV CSS is the general trend. Nowadays, many personal webmasters use DIV CSS to build their own website pages when creating new websites. It can be seen that DIV CSS replacing table is no longer a distant dream.

5. Comparing the size of the page made with TABLE and the page made with DIV CSS by producing and publishing the same page, the XHTML page size of DIV CSS is at least 1/4 smaller than the page made with TABLE. This makes browsing DIV CSS pages faster and faster.

The above is a complete introduction to the difference between DIV CSS and table. If you want to know more about CSS3 tutorial, please pay attention to the PHP Chinese website.

The above is the detailed content of What is the difference between DIV+CSS and table?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:divcss5.com. If there is any infringement, please contact admin@php.cn delete