squirrelscan
GitHub

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

[rules]
disable = ["images/figure-figcaption"]

Disable all Images rules

[rules]
disable = ["images/*"]

Enable only this rule

[rules]
enable = ["images/figure-figcaption"]
disable = ["*"]

Type to search…

↑↓ navigate↵ openesc close