SEO (Search Engine Optimization) has a lot of work to do, of which code optimization is a critical step. In order to be more in line with SEO specifications, the following Central IT Network will organize the currently popular CSS+DIV naming rules as follows:
Header: header
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:guild
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
1.Naming of CSS ID
Jacket: wrap
Main navigation: mainNav
Sub-navigation: subnav
footer: footer
Entire page: content
header: header
footer: footer
Trademark: label
title: title
Main navigation: mainNav(globalNav)
Top navigation: topnav
Side navigation: sidebar
Left navigation: leftsideBar
Right navigation: rightsideBar
Flag: logo
Slogan: banner
Menu content 1: menu1Content
Menu capacity: menuContainer
Submenu: submenu
Side navigation icon: sidebarIcon
Note: note
Breadcrumbs: breadCrumb (i.e. navigation prompts for the location of the page)
container: container
content: content
Search: search
Login: login
Functional area: shop (such as shopping cart, cashier)
currentcurrent
2. In addition, the comments available when editing the style sheet can be written like this:
content area
3. Style file naming
mainmaster.css
Layout, layout layout.css
columnscolumns.css
textfont.css
Print style print.css
themes themes.css