In search engine optimization, code optimization is a very important part. If the code of a web page is very simple, it is very beneficial to improve the ranking of the website. Similarly, in CSS style sheets, reasonable and orderly naming can also bring unexpected simplicity to the entire CSS work. In order to be more in line with search engine specifications, the following are some commonly used CSS code naming standards. Although these standards are not a norm that must be followed, they are accepted by most SEOers and bring convenience to the update of the entire website.
Page header: header (usually written as: #header in CSS)
Login bar: loginBar
Logo: logo
Sidebar:sideBar
Advertisement:banner
Navigation:nav
Sub-navigation:subNav
Menu:menu
Submenu:subMenu
Search:search
scroll:scroll
Page body: main
content: content
Tag page:tab
Article list:list
Prompt message: msg
Tips: tips
Column title:title
Join:joinus
guide:guide
service:service
Hotspot:hot
news:news
Download:download
Register:regsiter
Status:status
Button: btn
Vote:vote
Partner:partner
Friendly link: friendLink
Footer:footer
Copyright:copyRight
Naming convention for IDs in CSS
Jacket: wrap
Main navigation: mainNav
Sub-navigation: subnav
footer: footer
Entire page: content
header: header
footer: footer
Trademark: label
title: title