Advantages of div + css and divcss
What is div + css:
Before introducing the advantages of div + css, let's first introduce what is div + css.
Div + css is one of the most popular words in webpage design. It is a webpage layout method. In the XHtml standard, the table Positioning method is no longer used, but the div is controlled by CSS to implement the positioning we need, that is, the div + css layout. This layout method has exceeded the table layout method and has become the most popular method at present. Currently, the mainstream large websites and even small and medium-sized enterprise websites have div + css layout methods, showing its superiority.
Advantages of div + css:
Compared with table layout, div + css has the following advantages:
1. Separation of webpage performance and code. Style control codes can be stored in a single file, which complies with W3C standards without worrying about compatibility risks caused by network upgrades. At the same time, the access speed can be improved because the stripped style control file may be shared by multiple webpages. Therefore, it may be stored in the cache after being loaded once, therefore, you do not need to load the style control file when accessing other pages.
2. Facilitate search engine crawling. A webpage without table layout may have a large number of forms nested, and even a lot of performance control code is directly written into the webpage, resulting in huge redundancy of the webpage, which is not conducive to the search engine to effectively capture useful website content. In contrast, webpages with div + css layout generally only retain text and concise structured tags, which is very helpful for search engines to capture.
3. Website revision is relatively easy. Because CSS is used to control the layout of web pages, the requirements for large-scale modification of web pages can be achieved through simple modifications to CSS files and web pages. If the layout is in the form of a table, it is often necessary to redesign the table, basically equivalent to re-creating a new web page.
4. The code is concise, which helps improve the access speed. For a webpage with the same effect, the layout of div + css is much smaller than that of table layout, so it can save and speed up access.
Common Mistakes:
After reading the above advantages, there may be many misunderstandings. For example, as long as the webpage is div + css layout, it will be helpful for the search engine to grasp the area or save bandwidth. In fact, the main factor determining whether a webpage has a point is the level of development, not just a technology. Many excellent developers can also make it very efficient to write pages that use table layout. On the contrary, many developers can also confuse div + css layout pages.
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 4773.