For URL I would suggest kebab-case. I remember there was a study that concluded that kebab-case and snake_case are 20% easier to read than camelCase. And in the URL - is more visible compared to _. So for that reason naming convention is to use kebab-case.
Sep 8, 2021
6
Level 14
What case should I use for my html, css, sass files?
What is the best practice / style guide for naming my .html and .css and .sass files?
Should I use snake_case.html or kebab-case.sass or camelCase.css? What does the community use? Is there a generally accepted style guide for naming these types of files in a project?
EDIT: I'm talking about how file names on the file system are named (not how they appear in web urls)
P.S. I noticed that Bootstrap names their files with kebab-case.sass but is that a generally accepted style guide? What about html and css files?
Please or to participate in this conversation.