{"meta":{"title":"Barrierefreiheitsauditor","intro":"Anweisungen für umfassende Test und Compliance für Barrierefreiheit im Web","product":"GitHub Copilot","breadcrumbs":[{"href":"/de/copilot","title":"GitHub Copilot"},{"href":"/de/copilot/tutorials","title":"Anleitungen"},{"href":"/de/copilot/tutorials/customization-library","title":"Anpassungsbibliothek"},{"href":"/de/copilot/tutorials/customization-library/custom-instructions","title":"Benutzerdefinierte Anweisungen"},{"href":"/de/copilot/tutorials/customization-library/custom-instructions/accessibility-auditor","title":"Barrierefreiheitsauditor"}],"documentType":"article"},"body":"# Barrierefreiheitsauditor\n\nAnweisungen für umfassende Test und Compliance für Barrierefreiheit im Web\n\n> \\[!NOTE]\n>\n> * Die Beispiele in dieser Bibliothek dienen der Inspiration. Du solltest sie so anpassen, dass sie für deine Projekte, Sprachen und Teamprozesse spezifischer sind.\n> * Beispiele für von der Community bereitgestellte benutzerdefinierte Anweisungen für bestimmte Sprachen und Szenarios findest du im Repository [Großartige GitHub Copilot-Anpassungen](https://github.com/github/awesome-copilot/blob/main/docs/README.instructions.md).\n> * Abhängig von der Plattform oder IDE, auf der du sie erstellst, kannst du benutzerdefinierte Anweisungen auf verschiedene Bereiche anwenden. Weitere Informationen findest du unter [Informationen zum Anpassen der GitHub Copilot-Antworten](/de/copilot/concepts/response-customization).\n\nDas folgende Beispiel zeigt eine pfadspezifische `accessibility.instructions.md`-Datei, die nur für HTML-Dateien in Ihrem Repository gilt, und leitet GitHub Copilot an, barrierefreies, inklusives HTML zu generieren, das die WCAG-Richtlinien befolgt. Weitere Informationen zu pfadspezifischen Anweisungen findest du unter [Hinzufügen von benutzerdefinierten Repositoryanweisungen für GitHub Copilot](/de/copilot/how-tos/configure-custom-instructions/add-repository-instructions#using-one-or-more-instructionsmd-files).\n\n````text copy\n---\napplyTo: **/*.html\n---\n\nWhen generating code, ensure accessibility compliance by following these priorities:\n\n## Semantic HTML First\n- Use proper semantic elements: `<nav>`, `<main>`, `<section>`, `<article>`, `<header>`, `<footer>`\n- Structure headings sequentially (h1 → h2 → h3, never skip levels)\n- Use one `<h1>` per page with descriptive heading text\n\n## Essential ARIA Requirements\n- Add `alt` text to all images\n- Label form inputs with `<label>` or `aria-label`\n- Ensure interactive elements have accessible names\n- Use `aria-expanded` for collapsible content\n- Add `role`, `aria-labelledby`, and `aria-describedby` when semantic HTML isn't sufficient\n\n## Keyboard Navigation\n- All interactive elements must be keyboard accessible\n- Provide visible focus indicators (minimum 2px outline)\n- Include skip links: `<a href=\"#main\">Skip to main content</a>`\n- Use logical tab order that matches visual layout\n\n## Color and Contrast\n- Ensure 4.5:1 contrast ratio for normal text, 3:1 for large text\n- Don't rely solely on color to convey information\n\n## Quick Test Questions\n- Can you navigate the entire interface using only Tab/Shift+Tab/Enter?\n- Are all images and icons properly described?\n- Can screen reader users understand the content and functionality?\n\n## Screen Reader Compatibility\n\n**Provide descriptive text for all non-text content:**\n- Images: Use alt text that describes function, not just appearance\n  - Good: `alt=\"Submit form\"`\n  - Avoid: `alt=\"Blue button\"`\n- Form inputs: Associate every input with a `<label>` element\n- Links: Use descriptive link text\n  - Good: \"Download the accessibility report (PDF, 2MB)\"\n  - Avoid: \"Click here\" or \"Read more\"\n\n**Announce dynamic content updates:**\n- Use `aria-live=\"polite\"` for status updates\n- Use `aria-live=\"assertive\"` for urgent notifications\n- Update screen reader users when content changes without page reload\n\n---\n\n## Color and Contrast Requirements\n\n**Meet these specific contrast ratios:**\n- Normal text (under 18pt): Minimum 4.5:1 contrast ratio\n- Large text (18pt+ or 14pt+ bold): Minimum 3:1 contrast ratio\n- UI components and graphics: Minimum 3:1 contrast ratio\n\n**Provide multiple visual cues:**\n- Use color + icon + text for status indicators\n- Add patterns or textures to distinguish chart elements\n- Include text labels on graphs and data visualizations\n\n---\n\n## Testing Integration Steps\n\n**Include these automated checks:**\n1. Run axe-core accessibility scanner in CI/CD pipeline\n2. Test with lighthouse accessibility audit\n3. Validate HTML markup for semantic correctness\n\n**Perform these manual tests:**\n1. Navigate entire interface using only Tab and arrow keys\n2. Test with screen reader (NVDA on Windows, VoiceOver on Mac)\n3. Verify 200% zoom doesn't break layout or hide content\n4. Check color contrast with tools like WebAIM Color Contrast Checker\n\n---\n\n## Form Design Standards\n\n**Create accessible form experiences:**\n- Place labels above or to the left of form fields\n- Group related fields with `<fieldset>` and `<legend>`\n- Display validation errors immediately after the field with `aria-describedby`\n- Use `aria-required=\"true\"` for required fields\n- Provide clear instructions before users start filling out forms\n\n**Error message format:**\n```html\n<input aria-describedby=\"email-error\" aria-invalid=\"true\">\n<div id=\"email-error\">Please enter a valid email address</div>\n```\n\n---\n\n**Code Generation Rule:** Always include accessibility comments explaining ARIA attributes and semantic choices. Test code with keyboard navigation before suggesting it's complete.\n\n````\n\n## Weitere Informationen\n\n* [Informationen zum Anpassen der GitHub Copilot-Antworten](/de/copilot/concepts/response-customization): Übersicht über die Anpassung von Antworten in GitHub Copilot\n* [Hinzufügen von benutzerdefinierten Anweisungen für Copilot](/de/copilot/how-tos/configure-custom-instructions): Konfigurieren benutzerdefinierter Anweisungen\n* [Großartige GitHub Copilot-Anpassungen](https://github.com/github/awesome-copilot/blob/main/README.md): Repository der durch die Community bereitgestellten benutzerdefinierten Anweisungen und weiterer Anpassungen für bestimmte Sprachen und Szenarios"}