By @martinzeltin · 2021-09-08 06:16
What is the best practice / style guide for naming my
Should I use
camelCase.css? What does the community use? Is there a generally accepted style guide for naming these types of files in a project?
Kebab-casing is generally preferred for a number of reasons, including readability.
As far as I know, PHP is the only exception due to autoloading standards, but almost every other language I've ever worked with tends to lean on snake-casing and kebab-casing.
For HTML, kebab-casing is definitely preferred if the file is to be accessed directly via the URL.