Naming rules for Web UI design

Source: Internet
Author: User

1.Container
"Container" is the part that includes all elements in the page. This part can also be named "wrapper", "wrap", "page".
2.Header
"Header" is the header area of a website page. Generally, it contains the Website logo and other elements. This part can also be named "page-header" (or pageHeader ).
3.Navbar
"Navbar" is equivalent to a horizontal navigation bar and is the most typical web page element. This part can also be named "nav", "navigation", and "nav-wrapper ".
4.Menu
The "Menu" area contains general links and menus, which can also be named "subNav", "links", "sidebar-main ".
5.Main
"Main" is the Main area of the website. If it is a blog, it will contain logs. This part can also be named "content", "main-content" (or "mainContent ").
6.Sidebar
The "Sidebar" section can contain secondary content of the website, such as the list of recently updated content, Introduction to the website, or advertisement elements... This part can also be named "subNav", "side-panel", "secondary-content".
7.Footer
"Footer" contains some additional information about the website, which can also be named "copyright".

1. Consider the role or "intention" of naming an element as much as possible to achieve semantics. Do not use surface naming.
For example, red/left/big.

2. Combination naming rules:

For example, search button: btn-search
Logon form: form-login
News list: list-news

3. element names involving interactive behaviors:
Elements that involve interaction usually have different styles, such as normal, hover, click, and browsed. for naming rules, refer to the following:
Hover: hover click: click browsed: visited
Such as: search button: btn-search, btn-search-hover, btn-search-visited

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.