The importance of naming

1. Try not an abbreviation, unless one can understand a word
2. Only one word when all lowercase
3. Try English
4. Global: global.css
5. Private: the style.css
6. Pascal nomenclature (hump nomenclature)

Head: header
content: content / container
Tail: footer
Navigation: nav
sidebar: sidebar
column: column
page peripheral control the overall layout width: wrapper
around in: left right center
Login Article: loginbar
logo: logo
advertising: banner
body of the page: main
hot spots : hot
news: news
Downloads: download
sub navigation: subnav
menu: menu
submenu: submenu
search: search
Links: friendlink
footer: footer
copyright: copyright
scroll: scroll
content: content
tabs: tab
article list: list
prompt: msg
tips: tips
column headings: title
added: joinus
Guide: guild
service: service
registration: regsiter
status: status
vote: vote
Partner: partner
page structure container: container
header: header
content: content / container
body of the page: main
footer: footer
Navigation: nav
sidebar: sidebar
column: column
page peripheral control the overall layout width: wrapper
around in: left right center (2)
navigation: nav
main navigation: mainbav
sub navigation: subnav
top navigation: topnav
side navigation: sidebar
left navigation: leftsidebar
right navigation: rightsidebar
menu: menu
sub-menu: submenu
title: title
Abstract: summary (3)
feature flags: logo
advertising: banner
login: login
login item: loginbar
registration: regsiter
search: search
function areas: shop
title: title
added: joinus
status: status
button: btn
scroll: scroll
Tab: tab
article list: list
message: msg
current: current
tips: tips
icon: icon
Notes: note
Guide: guild
service: service
hot: hot
news: news
Downloads: download
vote: vote
Link: link
Copyright: copyright

Guess you like

Origin www.cnblogs.com/zhichengL/p/11789984.html