What is kebab-case used for?
kebab-case joins lowercase words with hyphens (main-content-wrapper) and is the standard for HTML class and ID names, CSS properties, file names and URLs. It is not usable for variable names in most programming languages because the hyphen is parsed as a minus operator.
Answered in
Programming Naming Conventions Explained: camelCase, PascalCase, snake_case & MoreLearn the difference between camelCase, PascalCase, snake_case, kebab-case and UPPER_SNAKE_CASE — which languages use which, and how to name things cleanly.
Read the full analysisOther questions this article answers
More development best practices questions
- What did OpenAI’s Habitat team change?
- Does the reported 12× read improvement mean another team should copy the design?
- Does the Python Typing Survey measure all Python developers?
- Do Python type hints enforce types at runtime?
- What is interactive refactoring in gopls?
- Is interactive refactoring already part of the official LSP standard?
- What does Meta mean by human-on-the-loop software engineering?
- Does Meta's Forum project prove that AI can replace a software team?
Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the Development Best Practices beat.