Home > Article > Web Front-end > Detailed introduction to standardized naming
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
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
##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.##Introduction: Website page construction: teach you How to standardize the naming of css
4.
DIV+CSS standard naming collection_html/css_WEB-ITnoseWe 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:
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!