Figure Captions
Checks for proper use of figure and figcaption elements
Checks for proper use of figure and figcaption elements
| Rule ID | images/figure-figcaption |
| Category | Images |
| Scope | Per-page |
| Severity | info |
| Weight | 2/10 |
Solution
Use <figure> and <figcaption> for images with captions. This provides semantic meaning and accessibility benefits. Screen readers announce figcaption as the image caption. Good for SEO as captions often contain keywords. Example: <figure>``<img src='...' alt='...'>``<figcaption>Description</figcaption>``</figure>.
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["images/figure-figcaption"]Disable all Images rules
squirrel.toml
toml[rules]
disable = ["images/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["images/figure-figcaption"]
disable = ["*"]