On the understanding and understanding of Web standards and the website

Source: Internet
Author: User

Web standards can be divided into structures, performance, and behavior in simple terms. The structure is mainly composed of HTML tags. Perhaps the popular point is that in the body of the page we write tags for the structure of the page. Performance refers to the CSS style sheet, the CSS can be the structure of the page is more aesthetically appealing. Behavior refers to the page and the user has a certain interaction, while the page structure or performance changes, mainly has JS composition.

Web standards generally separate the three parts so that they are more modular. But when the behavior is generally generated, there will be changes in structure or performance, and the boundaries of the three are not so clear.

The world of Web standards for the standardization of the requirements, that is, in the actual programming of some code specifications: including the following points

1. For the structure requirements: (tag specification can improve the search engine page crawl efficiency, SEO is very helpful)

1) Label Letter Lowercase

2) label to be closed

3) tags do not allow arbitrary nesting

2. For CSS and JS

1) Try to use the outer chain CSS style sheet and JS script. The structure, performance and behavior are divided into three blocks, which conform to the norm. At the same time, improve the page rendering speed, improve the user experience.

2) style as little as possible with the line style sheet, so that the structure and performance of the separation, tag ID and class attributes such as the name to see explanatory, the less the label, loading faster, user experience, code maintenance is simple, easy to revision

3) do not need to change the content of the page, you can provide a printed version without the need to copy content, improve the usability of the site.

On the understanding and understanding of Web standards and the website

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.