When to use each case
- Title Case for headings and titles.
- Sentence case for normal prose after pasting text typed in capitals.
- camelCase for variables and functions in JavaScript, Java and many other languages.
- PascalCase for class and component names.
- snake_case for Python and database columns.
- kebab-case for URLs, CSS classes and file names.
Notes
Title Case here capitalizes the first letter of every word and does not apply style-guide rules for small words such as "of" or "the". Code cases split on spaces, punctuation and existing camelCase boundaries, then rejoin the words.