1, the project name all lowercase2. Package name All lowercase3. The first letter of the class name is capitalized, if the class name consists of multiple words, the first letter of each word is capitalized.such as: public class myfirstclass{}4, the variable name, the method name first letter lowercase, if the name is composed of multiple words, the first letter
Common variables, usually lowercase, separated by ' _ ' between words
The name of the class is named by the hump and capitalized in the first letter
Instance variables start more than normal variables
A proprietary variable that begins with ' _ ' and ends with ' _ '
A proprietary variable is usually a python built-in variable, so it's best not to use this format
function, hump naming method
, the primary key is preferably a number, and is incremented, there are many tables of the primary key with 32-bit character encoding, the purpose of this is more security considerations. Because the index is inefficient when the character than characters, and the use of the self-increment column is not very small, such as adding the main table and operation from the table, the primary key of the main table is the foreign key from the table, this time also take the return value, and then add, ca
letters, and numbers or underscores can be used in the name. For example: div = "main_piclist" (indicating the image list under the main content), div = "nav_bg.jpg" (indicating the background image of the navigation bar), you can also use a hyphen to connect names, for example: div = "main-left" (indicating the layout of the content on the left) do not use Chinese characters in all naming conventions, but
Standard naming is also an important part of web standards. standard naming can better understand the code. I think everyone should have this experience. One day, the code written in the past cannot be understood, well, to avoid this, we need to standardize the naming process. Now, a project can be completed by no one. You need to cooperate with each other. If th
In a more content HTML page, you need to design many different frameworks, and then classify these different frameworks and content, give the corresponding names, so that the structure of the Web page is clearer, but also to facilitate the work. Many novice friends in the design of an HTML file, may only be based on their own ideas to give some simple name, but if blindly disorderly name, not only will let the team's partners do not understand, but also cause the label name confusion, this will
Summary of html and css naming rules and css naming Summary
I. Description of naming rules
Ii. css style naming of an important part of the outer part of a webpage
Other
standard usage in Web page making Div+css naming rules that can improve the effectiveness of optimization especially when teamwork can provide collaborative production efficiency, specific DIV CSS Naming conventions css
Collection
Introduction: When we develop CSS+P Web page (Xhtml), the more confused and tangled thing is the CSS naming, especially the novice do not know where to name, how to name is a good way. Naming rules Description: 1), all the names preferably lowercase 2), the value of the attribute must be enclosed in double
, our coding efficiency will be much lower. We must standardize our naming, let us more professional!
Today we introduce three kinds of naming rules on the basis of previous knowledge. These three naming conventions apply not only to the CSS and HTML encoding described above
standard usage in Web page making Div+css naming rules that can improve the effectiveness of optimization especially when teamwork can provide collaborative production efficiency, specific DIV CSS Naming conventions css
standard usage in Web page making Div+css naming rules that can improve the effectiveness of optimization especially when teamwork can provide collaborative production efficiency, specific DIV CSS Naming conventions css
The use of DIV+CSS naming rules in Web page production can improve the efficiency of optimization, especially when teamwork can provide a cooperative productivity, specific div CSS naming rules css naming encyclopedia content.Comm
Reprint statement:Original download: Bin GoThis article link: http://blog.bingo929.com/css-coding-semantic-naming.htmlIn this, very grateful to the author of the article to share, this article is completely reproduced from the above link, here as a backup, convenient to view the use.Rules of CSS naming conventions when
(from the already dead time and again finally hung out of the Baidu space manually rescued, published on 2014-06-19)standard usage in Web page making Div+css naming rules that can improve the effectiveness of optimization especially when teamwork can provide collaborative production efficiency, specific DIV CSS Naming
same time, we can optimize the third type, classify the container into common and layout to facilitate further modification. As for the common, you can add some common styles of font and color.
There is no perfect life, no perfect person, so there is no perfect file name, only try to fit with the html layout, and then focus on reflection from each project, summary, all the way to Rome, the mouse is a good cat.
Css selector
standard usage in Web page making Div+css naming rules that can improve the effectiveness of optimization especially when teamwork can provide collaborative production efficiency, specific DIV CSS Naming conventions css
Before any project or system development, you need to customize a development convention and rules, which is conducive to unified overall style of the project, code maintenance and expansion. As Web project development is decentralized, independent, and interactive, it is particularly important to customize a set of complete conventions and rules. Based on the current Guangdong talent network New Version scheme has been fully started, in order to bett
label is almost entirely without semantics, then you can hardly see any structure information in the page after you go to the style, the readability is very poor; If you choose a semantic-appropriate label, the page will still be very readable; each browser has its own default style, and the default style gives each label a different display , the correct use of the label can reflect the usability of the site, which is one of the easiest ways to check the usability of a website. This recommende
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.