HTML specification and html encoding Specification
1. The document type is correct;
2. Use a lower-case element name, which looks fresh and easy to write;
3. Close each tag to be closed;
4. disable empty HTML elements, such as <meta/>;
5. the attribute name must be in lower case;
6. attribute values are enclosed in quotation marks;
7. Add the alt attribute to the image;
8. Avoid a line of code that is too long and should contain at least 80 characters;
9. Do not add blank lines for no reason;
10. Two spaces are recommended for indentation, but Tab is not recommended;
11.
12. The first character of multi-line comments is indented with two spaces, making it easier to read;
13. Style Sheet
(1) The curly braces are in the same line as the selector, and a space is added between them;
(2) Use two spaces to indent;
(3) Add a space between the colon and the attribute;
(4) quotation marks are used only when the attribute value contains spaces;
(5) place the right curly braces in a new row;
(6) each line can contain a maximum of 80 characters;
14. When loading js and style sheets, type is not required;