Programming
programming
naming
text
What is kebab-case?
Definition
kebab-case is a naming convention where words are separated by hyphens and all letters are lowercase: my-component-name, get-user-data, is-active. It is named after the resemblance to food on a kebab skewer.
Why It Matters
kebab-case is the standard for CSS class names, URL slugs, HTML attributes, and Git branch names. URLs use hyphens because search engines treat hyphens as word separators but underscores as joiners, making kebab-case better for SEO.