Home Web Front-end CSS Tutorial DIV CSS English Naming Convention_Basic Tutorial

DIV CSS English Naming Convention_Basic Tutorial

May 16, 2016 pm 12:07 PM
Naming conventions


div css english naming convention_basic tutorial

1. css id naming

外 套:  wrap 
主导航:  mainnav 
子导航:  subnav 
页 脚:  footet 
整个页面: content 
页 眉:  header 
页 脚:  footer 
商 标:  label 
标 题:  title 
主导航:  mainbav(globalnav) 
顶导航:  topnav 
边导航:  sidebar 
左导航:  leftsidebar 
右导航:  rightsidebar 
旗 志:  logo 
标 语:  banner 
菜单内容1: menu1 content 
菜单容量: menu container 
子菜单:  submenu 
边导航图标:sidebaricon 
注释:   note 
面包屑:  breadcrumb(即页面所处位置导航提示) 
容器:   container 
内容:   content 
搜索:   search 
登陆:   login 
功能区:  shop(如购物车,收银台) 
当前的   current
Copy after login

2. in addition, the comments available when editing the style sheet can be written like this:

<-- footer --> 
内容区 
<-- end footer -->
Copy after login

3. style file naming

主要的 master.css 
布局,版面 layout.css 
专栏 columns.css 
文字 font.css 
打印样式 print.css 
主题 themes.css
Copy after login

the above is the content of div css english naming convention_basic tutorial. for more related content, please pay attention to the php chinese website (www.php.cn)!


Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to Optimize the Maintainability of Java Code: Experience and Advice How to Optimize the Maintainability of Java Code: Experience and Advice Nov 22, 2023 pm 05:18 PM

How to Optimize the Maintainability of Java Code: Experience and Advice In the software development process, writing code with good maintainability is crucial. Maintainability means that code can be easily understood, modified, and extended without causing unexpected problems or additional effort. For Java developers, how to optimize the maintainability of code is an important issue. This article will share some experiences and suggestions to help Java developers improve the maintainability of their code. Following standardized naming rules can make the code more readable.

Naming Conventions in PHP: How to use the PSR standard to name classes, methods and variables Naming Conventions in PHP: How to use the PSR standard to name classes, methods and variables Jul 30, 2023 am 11:17 AM

Naming conventions in PHP: How to use PSR standards to name classes, methods and variables. In PHP development, naming conventions are a very important detail, which directly affects the readability and maintainability of the code. PSR (PHPStandardRecommendations) is a series of code specification standards jointly determined by the PHP development community, including some specific requirements for naming. This article will introduce how to use the PSR standard specification to name PHP classes, methods, and variables, and provide code examples for reference.

Naming conventions and best practices for PHP methods Naming conventions and best practices for PHP methods Feb 29, 2024 pm 01:51 PM

Naming Conventions and Best Practices for PHP Methods As a popular server-side scripting language, PHP is widely used to develop websites and web applications. In PHP development, methods (functions) are a very important part. Good naming conventions and best practices can improve the readability, maintainability and scalability of the code. This article will share some norms and best practices about PHP method naming, while providing specific code examples. Method naming convention 1. Use meaningful and descriptive names. The name of a method should accurately describe the method.

Common Python variable naming methods and techniques Common Python variable naming methods and techniques Jan 20, 2024 am 09:17 AM

Commonly used variable naming methods and techniques in Python In programming, good variable naming is very important. A good variable name can make the code more readable and understandable, and improve the maintainability and scalability of the code. Poor variable naming can make code difficult to understand and modify. This article will introduce commonly used variable naming methods and techniques in Python, and provide specific code examples. Use meaningful variable names A good variable name should clearly convey the meaning of the variable so that others reading the code can easily understand its purpose.

C++ function naming: Comparison of Hungarian notation and naming conventions C++ function naming: Comparison of Hungarian notation and naming conventions May 04, 2024 am 08:18 AM

Comparison of C++ function naming conventions: Hungarian notation and naming conventions. Hungarian notation indicates types through variable name prefixes, which enhances readability but is verbose; naming conventions use more concise names to improve readability. Hungarian notation enforces type checking, which improves maintainability but can be confusing; the naming convention is more flexible. Hungarian notation has better reusability but poorer naming convention.

Naming conventions and rules for PHP functions Naming conventions and rules for PHP functions May 19, 2023 am 08:14 AM

As a very popular scripting language, PHP has powerful function library support. Its function naming conventions and rules have an important impact on development efficiency and code readability. This article will introduce the naming conventions and rules of PHP functions. 1. Naming style In PHP, function names need to strictly comply with naming specifications and rules. The specifications mainly include two aspects: naming style and naming rules. 1. Underline nomenclature Underline nomenclature is the most commonly used way to name PHP functions and is also an officially recommended way. Function names that follow this pattern

Should PHP function naming follow CAMEL CASE or snake_case? Should PHP function naming follow CAMEL CASE or snake_case? Apr 20, 2024 am 11:48 AM

There are two styles of PHP function naming: CAMELCASE uses camel case naming for class methods, which is more compact and easier to read; snake_case uses underscore connectives for functions and global variables, which is clearer and more consistent with convention. Choosing a specification depends on personal preference and team agreement. Being consistent improves code readability and maintainability.

The complementary relationship between documentation comments and naming conventions in C++ function naming The complementary relationship between documentation comments and naming conventions in C++ function naming May 03, 2024 am 09:00 AM

Function naming conventions and documentation comments in C++ complement each other and improve code readability. Naming conventions provide clear and consistent function names, while documentation comments supplement details such as their purpose, parameters, return values, and preconditions, ensuring that the code is easy to understand, maintain, and extend.

See all articles