The importance of CSS naming conventions and team work
With the future trend from the current html4+css2.0 to the development of html5+css3.0 upgrade, now the CSS naming convention is very important, of course, the development of HTML 5+CSS 3.0 fully compatible with at least 5-8 years, but now can be from the accumulation of bits. html5+ CSS3.0 is completely compatible with at least 5-8 years to come, can calculate from IE6 to now IE8 development, and there are many users in the use of IE6 browser, IE6 now has not been eliminated by Microsoft or can not be used, from the beginning of the IE6 to now also experienced about 8 years, if you want to develop to the HTML5 It will take at least 8 years for +css3.0 to be compatible with each browser.
The importance of CSS naming conventions
1, for the future html5+css3.0 development direction lay the foundation.
Now naming the head, the bottom, and so we are accustomed to use header, footer to name, the final HTML call CSS style is this form, after the html5+css3.0 standard will be directly
Label to represent the head part, so for later version upgrade specification has some benefits, although to achieve compatible html5+css3.0 browser is still early, but can for DIV+CSS developers can first notice.
2, the CSS naming specification can save team development time.
Especially in the team to develop the website project, we standardize to produce a consensus of the CSS naming, will save the development time and cost, if the development project DIV+CSS developers disorderly naming CSS, will give later the interpretation of the programmer to bring inconvenience.
3, the CSS naming code for future maintenance to bring convenience
Div+css after the development of the site after the production of good, it is difficult to ensure that after the adjustment and optimization, so that they do not have their own set of CSS naming features, will be the maintenance of their own later brought inconvenience.
Summarize:
Whether it is considering team development, future maintenance, HTML5+CSS3 upgrades, DIV CSS development pseudo class naming is very important.
Now usually we are in HTML 4.0 and CSS 2.0 based on the development of DIV+CSS compliant web site, as for HTML 5+CSS 3.0 can understand, if you want to use at least a few years, such as browser IE6-IE8 can not use, At this time we will be reasonable use of HTML 5+CSS 3.0.