text-capitalization
In this article, you’ll learn more about the rule type text-capitalization. See the table below:
Rule | text-capitalization |
---|---|
Description | Check how words are capitalized in various contexts (like headings, for example). |
Ignore pages with label |
|
Configuration options: | |
style | What kind of of capitalization style should be used? Allowed values:
Defaults to: sentence |
scope | Which elements on the page should this capitalization be applied to? Allowed values:
It is also possible to use multiple values for this setting, for example: Defaults to: none |
Example Settings
# Report on incorrect capitalization in a specific element.
rules:
- rule: text-capitalization
description: Use title case in H1 and H2
level: minor
style: title
scope: [heading1, heading2]