Web site file Naming conventions

Source: Internet
Author: User
Tags lowercase version domain name domain name server root directory
Specification  

· The principle of file naming: To achieve the most understandable meaning with the fewest letters.
· Index files are unified using index.html file names (lowercase) index.html files as "bridge pages" without making specific content, just as jump pages and Meta tab pages. Main content page is main.html
· A single word is the name of the English translation of the menu name. For example: About Us \aboutus information Feedback \feedback product \product All single English word file names must be lowercase, all combinations of English word filenames The second from the first letter; All file names are underlined between letters
· The picture naming principle is in the name of the picture English letter. The size principle writes Ditto. For example: the website logo picture for logo.gif mouse Induction effect picture naming specification for "Picture name +_+on/off". For example: Menu1_on.gif/menu1_off.gif

Other file naming conventions

The naming principle for 1.js is in the name of a functional English word.
For example: Banner of JS file name: Ad.js 2. All CGI file suffixes are CGI all CGI program's configuration file is config.cgi

Site Directory Settings specification

The principle of directory establishment: Provide the clearest and easiest access structure at the lowest level. The root directory. The root directory is the directory where the index file that the DNS domain name server points to is stored.
The FTP upload directory for the server defaults to the HTML root directory file root directory allowing only index.html and main.html files to be stored, as well as other required system files.
Each language version is stored in a separate directory. The existing version language is set to: Simplified Chinese \gb Traditional Chinese \big5 English \en Japanese \jp each main function (main menu) to establish a corresponding independent directory. The images under the root directory are stored in the public picture directory, and the private pictures in each directory are stored in their respective separate images directories. For example: \menu1\images \menu2\images all the JS files are stored in the root directory of the unified directory \script all the CSS files stored in the root directory of the style directory all the CGI programs stored in the root directory and the directory \cgi_bin directory

(The above is just standard, do not adhere to a grid, innovation, and then innovation!) )



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.