figure-figcaption
Was er macht
Dieser Skill prüft, ob Bildunterschriften auf einer Seite richtig ausgezeichnet sind. Er ist für Entwickler und Redakteure gedacht, die Inhalte mit Bildern veröffentlichen.
Wann du ihn nutzt
- ✓Wenn ein Bild auf deiner Seite eine Bildunterschrift in einem einfachen Absatz hat.
- ✓Wenn du Artikel mit Fotos, Diagrammen oder Grafiken veröffentlichst.
- ✓Wenn deine Bildunterschriften von Hilfsprogrammen korrekt gelesen werden müssen.
Link zum Skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/figure-figcaption/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du die Fotos und Bildunterschriften in meinem Artikel richtig strukturieren?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Dein Agent findet Bilder, neben denen Text steht, und umschließt jedes Paar mit einem figure-Element und einem figcaption. Außerdem prüft er, dass der Alternativtext nicht eine genaue Kopie der Bildunterschrift ist.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Use <figure> and <figcaption> for image captions
Using a <p> tag as a caption is invisible to assistive technology as an image description. The <figure>/<figcaption> pattern creates a machine-readable relationship between an image and its caption, which screen readers surface to users. It also communicates to search engines that the caption describes the image, supporting image SEO.
Quick Reference
- Wrap image + visible caption pairs in
<figure>with<figcaption>as a direct child <figcaption>must be the first or last child of<figure>- Do not duplicate alt text in figcaption—alt is the fallback, figcaption is the visible description
<figure>is appropriate for images, code blocks, diagrams, and charts—not every image
Check
Scan the codebase for images with adjacent visible text that acts as a caption (e.g., a <p> or <span> immediately below an <img> describing it). Verify: 1) Such image-caption pairs are wrapped in <figure>. 2) The caption text is inside a <figcaption> element. 3) <figcaption> is a direct child of <figure>. 4) The alt text on the <img> is not identical to the <figcaption> text—they serve different purposes. Flag any <img> followed by descriptive text that is not structured as figure/figcaption.
Fix
For each image with an adjacent caption: 1) Wrap the <img> and its caption text in a <figure> element. 2) Move the caption text into a <figcaption> element inside <figure>. 3) Review the <img> alt attribute—if the figcaption already fully describes the image for sighted users, the alt can be shorter or empty (alt="") only if the figcaption alone is sufficient for screen readers too; otherwise keep a concise alt. 4) Position <figcaption> as the first or last child of <figure>. Show the corrected HTML.
Explain
Explain the semantic meaning of <figure> and <figcaption>. The <figure> element represents self-contained content (an image, code sample, diagram) that is referenced from the main content but could be moved without affecting the document flow. <figcaption> provides a caption or legend for the figure. Screen readers announce the figcaption in association with the figure, giving users context. Without this markup, sighted users see a caption but screen reader users hear only the alt text with no indication that a visible caption exists.
Code Review
Review image assets, markup, and delivery configuration related to Use <figure> and <figcaption> for image captions. Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/images/figure-figcaption
Häufige Fragen
Was ist ein figcaption?
Das ist das HTML-Element für eine Bildunterschrift. Es steht zusammen mit dem Bild innerhalb eines figure-Elements.
Muss der Alternativtext zur Bildunterschrift passen?
Nein. Der Skill sagt, der Alternativtext ist eine Ersatzbeschreibung und die Bildunterschrift der sichtbare Text. Beide sollten sich daher unterscheiden.
Braucht jedes Bild ein figure?
Nein. Der Skill sagt, figure passt zu Inhalten wie Bildern, Codeblöcken, Diagrammen und Grafiken, nicht zu jedem Foto.
Details
Originalbeschreibung des Autors
Use when reviewing image assets, markup, and CDN or build transforms related to Use <figure> and <figcaption> for image captions. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.
Beliebtheit
- GitHub-Sterne
- 75k
- Platz im Ranking
- #2843
- Lizenz
- MIT
- Aktualisiert
- 31.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
frontendchecklist
75kPrüft Frontend-Code und Live-Seiten anhand von über 380 Regeln zu Barrierefreiheit, Geschwindigkeit, SEO und Sicherheit, mit einem Kommandozeilenwerkzeug.
frontend-checklist-global
75kPrüft ein Frontend-Projekt gegen alle 386 Regeln der Front-End Checklist und gibt für jedes gefundene Problem eine konkrete Lösung.
404-page
75kPrüft, ob deine Seite für fehlende Adressen hilfreiche Links anbietet und einen echten 404-Statuscode zurückgibt, damit verirrte Besucher ihren Weg finden.
about-page
75kPrüft, ob deine Website eine klare Über-uns-Seite hat, die erklärt, wer sie betreibt, um Vertrauen bei Besuchern und Suchmaschinen aufzubauen.
Ähnliche Skills
angular-developer
280kHilft deinem Agenten bei Angular-Code und gibt Tipps zur Projektstruktur. Nützlich für neue Projekte, einzelne Code-Teile sowie Performance und Barrierefreiheit.
frontend-a11y
280kHilft deinem Agenten, Weboberflächen für alle zugänglich zu machen. Sorgt dafür, dass Websites und Apps gut mit Screenreadern und Tastaturnavigation funktionieren.
frontend-patterns
280kLässt deinen Agenten moderne Muster in der Frontend-Entwicklung anwenden. Optimiert Performance, verwaltet State und folgt Best Practices für React und Next.js.