Web standards include structure [html], performance [css] and behavior [JavaScript]. The structure is mainly composed of html tags. The tags we write in the page body are all for the structure of the page.
#The operating environment of this article: Windows 7 system, Dell G3 computer.
Web standards is not a certain standard, but a collection of a series of standards.
Web pages are mainly composed of three parts: Structure, Presentation and Behavior.
The corresponding standards are also divided into three aspects: structured standard languages mainly include XHTML and XML, performance standard languages mainly include CSS, and behavioral standards mainly include object models (such as W3C DOM), ECMAScript, etc.
Most of these standards are drafted and published by the World Wide Web Consortium (foreign language abbreviation: W3C), and some are standards developed by other standards organizations, such as the ECMAScript standard of ECMA (European Computer Manufacturers Association).
Web standards make Web development easier.
Simply speaking, web standards can be divided into structure (html), performance (css) and behavior (JavaScript).
The structure is mainly composed of html tags. The tags we write in the page body are all for the structure of the page.
Performance is the css style sheet. Structural tags can be made more beautiful through css.
Behavior refers to the certain interaction between the page and the user, which is mainly composed of js.
Why do we need web standards?
It is more conducive to the better development of the Web for browser developers and Web program developers to comply with specified standards when developing new applications.
Developers make web pages according to web standards, which makes it simpler for developers because they can easily understand each other's coding.
Using web standards will ensure that all browsers display your website correctly without the need for time-consuming rewrites.
Web pages that adhere to standards can make it easier for search engines to access and include the web page, it can also be easier to convert to other formats, and it is easier to access program code (such as JavaScript and DOM).
Related learning recommendations: Website construction tutorial
The above is the detailed content of What do web standards include?. For more information, please follow other related articles on the PHP Chinese website!