Recently some friends are very puzzled about what the Web Standard is, I am here to make a summary, there is better insight can be a private messages to me!
Let's talk first before we get to the point. Doctype,doctype is a shorthand for document type, the main purpose of which is to illustrate what version of XHTML or HTML you are using. The browser interprets the page code according to your DOCTYPE-defined DTD (document type definition) and shows it. So to build Web-compliant pages, DOCTYPE is an essential part of the key!
Then we'll talk about the composition of the Web Standard.
There are three main components of Web standards: Structure (Structure), monetization (Presentation), and Behavior (Behavior).
The primary language corresponding to the structural standard is XHTML.
The main language that corresponds to the performance criteria is CSS.
The main language that corresponds to the behavior standard is JavaScript.
Make a static page, the main use is XHTML+CSS, so the technology to make standard page is xhtml+css.
The advantages of using Web standards to build stations:
1. Improve page browsing speed, using CSS method, than the traditional web design method to save at least 50% of the file size.
2. Shorten the revision time and separate the performance (style/appearance) from the content (Information/data). Just modify a few simple CSS files to redesign a site with thousands of pages.
3. Reduce the cost of the website, bandwidth requirements (more concise code), reduce costs!
4. More likely to be found by search engines, improve the site in Google or Baidu ranking above.
5. Content can be accessed by a wider range of devices, including screen readers, printers, handheld devices, search robots, refrigerators and more.
The production process of the general site site is: Content Layer--- structure layer --- the performance layer --- behavior layer.
Web Standards in detail