DIV+CSS layout

Source: Internet
Author: User

Page layouts generally have three ways:

    1. Table layout
    2. Frame layout
    3. DIV+CSS layout

Among them, div+css layout conforms to the world standard, has become the mainstream of Web page layout now.

The main function of the <div> tag is to set the position of text, pictures, tables, etc. When you place text, pictures, etc. in a <div> tag, the tag is called a div block or div element or div layer.

The use of CSS and div can be a good solution to the problem of image or text positioning, through the use of Div and CSS, web designers can precisely set the location of the content, but also the positioning of the content stacked up and down. With the Div+css layout, you can first determine the semantics or structure of the page content instead of looking at the appearance first. A well-structured XHTML page can be displayed in any form through CSS. CSS layouts enable a true separation of structure and appearance, with the following 4 distinct advantages over traditional table page layouts :

1. Separation of performance and content. The design is stripped out and placed in a standalone style file, where only text information is stored in the XHTML file.
2. Improve the index efficiency of the search engine on the webpage. Instead of nested tags with XHTML that contains only structured content, search engines will search your Web content more efficiently and may give you a higher rating.

3. Improve the speed of page browsing. For the same page visual effect, the page capacity using Div+css refactoring is much smaller than the size of the table-encoded paging file, which generally has only the latter 1/2. The most intuitive experience for users is that the Web page opens a lot faster, can give users a better experience.
4, easy to maintain and revision. You can redesign the entire Web page by simply modifying a few CSS files.

  the use of Div and CSS Positioning technology for Web page layout is now the main page layout mode, is the table page layout alternative technology. Using Css+div layout page capacity than the table layout of the page file is much smaller, the former generally only the latter 1/2 size, saving a lot of bandwidth, while reducing the cost of the site revision. The organization provides validation services for CSS code in the following address:
http://jigsaw.w3.org/css-validator/

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.