Understanding Different Text Cases
- Sentence case
- The first letter of each sentence is capitalized. This is the standard for most writing.
- Title Case
- The first letter of each word is capitalized. Often used for headlines and book titles.
- camelCase
- Used in programming. The first word is lowercase, and the first letter of each subsequent word is capitalized, with no spaces. Example:
myVariableName.
- PascalCase
- Similar to camelCase, but the first word is also capitalized. Often used for class names in programming. Example:
MyClassName.
- snake_case
- All words are lowercase and separated by underscores. Common in languages like Python and SQL. Example:
my_variable_name.
- kebab-case
- All words are lowercase and separated by hyphens. Often used for URL slugs and CSS class names. Example:
my-css-class.