Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the naming convention for pictures, script files, and dynamic files in the Web front end?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Xiaobian to share with you the Web front-end images, script files and dynamic file naming specifications is what kind of, I believe most people do not know how, so share this article for your reference, I hope you read this article after a great harvest, let us go to understand it!

A picture naming convention

The name of the picture is divided into two parts, separated by underscores. The first part indicates the general nature of the picture, such as advertising, logos, menus, buttons, etc.

2 Conventional naming

2.1 A rectangular image placed at the top of a page, such as an advertisement or decorative design.

2.2 The iconic image is called: logo

2.3 A small image that is not fixed on the page and has a link, we call it button.

2.4 A picture of a link column that appears continuously at a certain position on the page and has the same nature. We call it menu.

2.5 Decorative photos we call pic

2.6 A picture without a link to indicate a title is called title.

3 Examples

banner_sohu.gif

banner_sina.gif

menu_aboutus.gif

menu_job.gif

title_news.gif

logo_police.gif

logo_national.gif

pic_people.jpg

II. Naming standards for script files and dynamic files

1 is generally named with the English lowercase abbreviation of script function

1.1 actual module

For example: ad bar javascript file name ad.js pop-up javascript file name pop.js

1.2 share the module

JS file name: English name, suffix.js. common common.js.basic.js

1.3 external resources

Jquery.min.js

Jquery.validate.js

Jquery.date.js

2 Dynamic language file naming principles: see the name to know the meaning

2.1 Description can have multiple words, separated by "_," properties are generally a summary of the page

Example: register_form.aspx

register_post.aspx

topic_lock.aspx

2.2 Different prefixes can be used to distinguish between different modules.

The above is "What is the naming convention for images, script files and dynamic files in the Web front-end?" All the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report