I just want to know if there are any web standards or professional ways for naming conventions in a project. Is there any standards for css and js ?
CSS
- style.css
- main.css
- base.css
- base.css
JS files
- script.js
- index.js
I just want to know if there are any web standards or professional ways for naming conventions in a project. Is there any standards for css and js ?
CSS
JS files
All your provided file name is valid.
You must name your file to represent it's content:
What can I say from file name:
scripts.js - All scripts, not minimized
index.js - Only scripts that will be used in index file.
style.css - All styles for page
main.css - Main set of styles that will be used on page, missing specific parts
base.css - Same as main.css
You have to select name that fits best.