Home > Web Front-end > HTML Tutorial > Detailed introduction to standardized naming

Detailed introduction to standardized naming

零下一度
Release: 2017-06-10 10:28:17
Original
2123 people have browsed it

Naming functions and variables correctly and vividly can not only increase the readability of the program, but also reflect the programmer's programming style. Better naming habits can effectively improve the maintainability of the program. The following introduces the method of standardizing naming. Interested friends can take a look. 1. DIV+CSS standard naming set When we develop CSS+p web pages (Xhtml), the most confusing and tangled thing is CSS naming, especially novices who don’t know how to name what and what is the best way to name it. Description of naming rules: 1) All names should be lowercase. 2) Attribute values ​​must be enclosed in double quotes ("") and must have values ​​such as class="pcss5", id="pcss5"2 . JS naming convention: Hungarian nomenclature or camel case naming convention is necessary to enhance the readability of the code. You can understand the meaning at a glance. The specification is to comply with the rules and make the code conducive to later maintenance. It can also greatly improve development efficiency. A normal website has a lot of JS

1. DIV CSS specification naming summary

Detailed introduction to standardized naming

Introduction: Naming functions and variables correctly and vividly can not only increase the readability of the program, but also reflect the programmer's programming style. Better naming habits can effectively improve the maintainability of the program. The following introduces the method of standardizing naming. Interested friends can take a look.

2. DIV+CSS specification named collection

Detailed introduction to standardized naming

##Introduction: When we develop CSS+p web pages (Xhtml), the most confusing and entangled thing is CSS naming, especially novices who don’t know what to name and what is the best way to name it. Description of naming rules: 1) All names should be lowercase. 2) Attribute values ​​must be enclosed in double quotes (""), and must have values ​​such as class="pcss5", id="pcss5" 3 ). Each tag must have a beginning and an end, and must have the correct level, and the layout must be regular and neat. 4) Empty elements must have an ending tag or add &qu## after the beginning tag.

#3.

Standard naming css

Detailed introduction to standardized naming##Introduction: Website page construction: teach you How to standardize the naming of css

4.

DIV+CSS standard naming collection_html/css_WEB-ITnose

We develop CSS+DIV When making web pages (Xhtml), the most confusing and tangled thing is CSS naming, especially novices who don’t know what to name and what is the best way to name it.

Naming rules description:

1), all names are best in lowercase

2), attribute values ​​must use double quotes ("") enclosed, and must have a value such as class="pcss5", id="pcss5"

The above is the detailed content of Detailed introduction to standardized naming. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template