網站檔命名規範
· 檔命名的原則:以最少的字母達到最容易理解的意義。
· 索引檔統一使用index.html檔案名(小寫) index.html檔統一作為"橋頁",不製作具體內容,僅僅作為跳轉頁和meta標籤頁。主內容頁為main.html
· 按菜單名的英語翻譯取單一單詞為名稱。例如: 關於我們 \aboutus 資訊回饋 \feedback 產 品 \product 所有單英文單詞檔案名都必須為小寫,所有組合英文單詞檔案名第二個起第一個字母大寫; 所有檔案名字母間連線都為下劃線
· 圖片命名原則以圖片英語字母為名。大小原則寫同上。 例如:網站標誌的圖片為logo.gif 滑鼠感應效果圖片命名規範為"圖片名+_+on/off"。 例如:menu1_on.gif/menu1_off.gif
其他檔命名規範
1.js的命名原則以功能的英語單詞為名。
例如:廣告條的js檔案名為:ad.js 2.所有的CGI檔尾碼為cgi 所有CGI程式的配置檔為config.cgi
網站目錄設置規範
[便宜超值網頁設計 www.6000.com.tw]
目錄建立的原則:以最少的層次提供最清晰簡便的訪問結構。 根目錄。 根目錄指DNS功能變數名稱伺服器指向的索引檔的存放目錄。
伺服器的ftp上傳目錄默認為html 根目錄檔 根目錄只允許存放index.html和main.html檔,以及其他必須的系統檔。
每個語言版本存放於獨立的目錄。已有版本語言設置為: 簡體中文 \gb 繁體中文 \big5 英 語 \en 日 語 \jp 每個主要功能(主功能表)建立一個相應的獨立目錄。 根目錄下的images為存放公用圖片目錄,每個目錄下私有圖片存放於各自獨立images目錄. 例如:\menu1\images \menu2\images 所有的js檔存放在根目錄下統一目錄\script 所有的CSS檔存放在根目錄下的style目錄 所有的CGI程式存放在根目錄並列目錄\cgi_bin目錄