Understanding and knowledge of web standards and websites

Source: Internet
Author: User

The Web page consists mainly of three parts, performance, structure and behavior.

What I understand is that:

    • HTML is a noun--expression
    • CSS is an adjective--structure
    • JavaScript is a verb--behavior

The above three things to form a complete Web page, but JS changes, can cause CSS and HTML confusion, so that the boundaries of the three is not so clear.

This time, the Web Standard is out, theWeb Standard is generally to separate the three parts, making it more modular.

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)

    • Label letters to lowercase
    • Label to be closed
    • tags do not allow arbitrary nesting

2. For CSS and JS

    • Try to use the outer-chain CSS stylesheets and JS scripts. 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.
    • 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 improved, easy code maintenance, easy revision

Here, by the way, explains what the Web label semantics is, which is to do the right thing with the right tag.

Like what:

Recognizing the shortcomings of the previous HTML version, HTML5 launched a further development of web semantics, using semantic tags such as footer and sections to compensate for the lack of id= "footer" or class= "footer". To better promote the development of the Web.

Understanding and knowledge of web standards and websites

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.