Good DIV + CSS naming rules are conducive to SEO Optimization

Source: Internet
Author: User

I. CSS file and style naming

1. CSS file naming rules

Global style: global.css;

Frame layout: layout.css;

Font.css;

Link style: link.css;

Print Style: print.css;

2. CSS style naming rules

My suggestion: it may consist of letters, _ signs,-signs, and numbers. It must start with a letter and cannot be a pure number. For the convenience of style name management after development, please use meaningful words or abbreviations to name them so that colleagues can understand which style is like this, this saves time for searching styles, for example:

Header styles use headers, header_left or header_l to the left of the header, and -- box _ 1of3 (the first column in the three columns) if the column structure is used ), box F3 (the second column in the three columns) and box _ 3of3 (the third column in the three columns). I will not give an example for others. Just name them according to the above rules.

The following lists some frequently used naming words for your convenience: (in the future, you will gradually share your accumulated words during your work, so that your life will be more unified, there will be no more words .)

Container: container/box

Header: header

Main PILOT: mainNav

Sub-Pilot: subNav

Top navigation: topNav

Website logo: logo

Announcement: banner

Central page: mainBody

Background: footer

Menu

Menu content: menuContent

Sub-menu: subMenu

Sub-menu content: subMenuContent

Search: search

Search keyword: keyword

Search range: range

Label text: tagTitle

TAG content: tagContent

Current Tag: tagCurrent/currentTag

Title: title

Content

Column table: list

Current location: currentPath

Side bar: sidebar

Icon

Note: note

Login: login

Note: register

Column definition: column_1of3 (the first column in the three columns)

Column53f3 (second column in the three columns)

Column_3of3 (the third column in the three columns)

  • 5 pages in total:
  • Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page

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.