If only a few lines or dozens of lines of code! Just use English words. But if there are too many, it will be difficult to write. Sometimes, just use Hanyu Pinyin or the first letter of Pinyin instead. But there are too many, and I can’t even understand what they mean by writing them myself, let alone asking programmers to call these styles. The difference between id and class in div+css style sheets: To sum it up in one sentence, class can define multiple values ??and can be applied to multiple tags, but id can only be one. So I started to check some common naming rules for related div+css style sheet ids and classes. Please refer to them: First, let’s talk about the common naming rules for div+css style sheet ids as shown in the following table: Page header header login bar loginBar logo logo sidebar sideBar advertising banner navigation nav sub-navigation subNav menu menu submenu subMenu search search scroll scroll page main content content tab tab article list list prompt information msg tips tips column title title join joinus guide guild service service hot news news download download registration regsiter status status button btn vote partner partner friendly link friendLink footer footer copyright copyRight In fact, the id naming of the above div+css style sheet is often distinguished by uppercase and lowercase and _, for example, the main navigation is MainNav , If it is still necessary to distinguish, it is MainNav_1, MainNav_2 and so on. You can also use the "type + variable name" rule to name it. For example, to write a class with red font, you can use .f_red {} (f is the abbreviation of font). In short, the principle is: capitalization, _, and abbreviations greatly enhance the readability of the code. Let’s talk about the common naming rules for classes in div+css style sheets as shown in the following table: coat wrap main navigation mainNav sub-navigation subnav footer footer entire page content header header trademark label title title main navigation mainNav side navigation sidebar left navigation leftsideBar right navigation rightsideBar flag logo slogan banner menu content menu1Content menu capacity menuContainer submenu submenu side navigation icon sidebarIcon comment note breadcrumb breadCrumb container container content content search search login login ribbon shop current current Of course, like the id and class of the div+css style sheet The naming is far more than these, and there may be more names. You can use some common and easy-to-understand names. If you have better naming rules for the id and class of the div+css style sheet If so, please leave a message and give me some advice.