What case should I use for my html, css, sass files?

By @martinzeltin · 2021-09-08 06:16

What case should I use for my html, css, sass files?

  • By @mike · 2021-09-08 11:54

    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.