The benefits and significance of DIV+CSS

Source: Internet
Author: User

The benefits and significance of DIV+CSS http://www.ijavascript.cn/jiaocheng/div-css-sense-435.html the industry is more and more concerned about the standardization of DIV+CSS design, large to the major portal sites, As small as countless personal sites, web designers have made this requirement an industry standard under the influence of DIV+CSS standardization. So what is the DIV+CSS standard? What are the benefits of DIV+CSS's standardized design?

Div Full name division means "differentiate" the way to use Div is the same as using other tags.

If you use a DIV alone without any CSS, the effect on the Web page is the same as using <P></P>.

Div itself is container nature, you can not only inline table can also embed text and other HTML code
CSS is the abbreviation of cascading style sheets, the Chinese translation "Cascading style form", in the home page production using CSS technology, can effectively to the layout of the page, font, color, background and other effects to achieve more precise control. Just make some simple changes to the corresponding code, you can change the different parts of the same page, or pages of different page appearance and format. Web surfing Whether you use Internet Explorer or Netscape Navigator, you are almost always working with CSS, and Web pages that do not use CSS on the web may not be easy to find. No matter what tool software you use to make Web pages, you are using CSS intentionally or unintentionally. With good CSS can make your Web page more conciseness, the same content of the page, some people do it has dozens of KB, and the master made to only more than 10 KB.

Advantages of the DIV+CSS standard:
1. Greatly reduce the page code, improve page browsing speed, reduce bandwidth costs;
2. Clear structure, easy to search by search engines, natural optimization of SEO
3. Shorten the revision time. Simply modify a few CSS files to redesign a site with hundreds of pages.
4. Strong font control and typesetting ability. The ability of CSS to control fonts is much better than bad font tags, with CSS, we no longer need to use the font tag or transparent 1 px gif to control the title, change the font color, font style and so on.
5.CSS is very easy to write. You can write CSS as easily as you would write HTML code.
6. Improve ease of use. CSS can be used to structure HTML, for example:<p> tags are only used to control the paragraph, the heading tag is used only to control the title, the table tag is used only to display formatted data and so on. You can add more users without having to build a separate version.
7. Can be designed at once, publish anywhere. Your design is not just for web browsers, it can be posted on other devices, like PowerPoint.
8. Better control of page layout. Don't say much.
9. Separation of performance and content. You can reduce the likelihood of future page invalidation by stripping out the design part and placing it in a standalone style file.
10. Search engine is more convenient. Instead of nested tags with HTML that contains only structured content, search engines will search your content more efficiently and may give you a higher rating (ranking).
11.Table layout is not very flexible, you can only follow the Table TR TD format. and div you can div ul Li can also ol Li can also ul Li ... But the standard syntax is best written in an orderly manner.
12. In addition, if you are not a Javascrput master, you can not write the ID, just use class. When the client programmer finishes writing the program and needs to be adjusted, you can control it using his ID.
13.Table layout, garbage code will be many, some of the modified style and layout of the code mixed together, it is not conducive to intuitive. The DIV is more able to embody the separation of style and structure, and the structure is strong in reconstruction.
14. Can be used on almost all browsers.
15. Previously, some features that had to be implemented through image conversion are now easy to implement with CSS, allowing you to download pages faster.
16. Make the font of the page more beautiful, easier to arrange, make the page really pleasing.
17. You can easily control the layout of the page.
18. You can update the style format of many Web pages at the same time, without having to update the page again. You can use a CSS file to control all the Web page styles on the site, and as long as you modify the corresponding line in the CSS file, all pages of the entire site will be changed.

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.