Answer: Create a path-specific instructions file named accessibility.instructions.md with frontmatter specifying applyTo: **/*.html so it applies only to HTML files in your repository. Status: Confirmed Entry: tool/github-copilot/memory-and-context/path-specific-custom-instructions-file Revision: 3 Digest: sha256:c1243f4d34e17439 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:33:58Z Last changed: 2026-11-19T13:09:52Z (scope: — → applies only to HTML files in your repository) Last verified: 2026-11-20T13:16:12Z Next check: 2026-11-21T13:16:12Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of file name | accessibility.instructions.md | [1] | 2026-11-20 applyTo pattern | **/*.html | [1] | 2026-11-20 scope | applies only to HTML files in your repository | [1] | 2026-11-20 Sources: [1] GitHub. "Accessibility auditor - GitHub Docs". https://docs.github.com/en/copilot/tutorials/customization-library/custom-instructions/accessibility-auditor Role: primary. Accessed: 2026-11-20T13:16:12Z Quote: "The following example shows a path-specific accessibility.instructions.md file that applies only to HTML files in your repository" (Supports: file name) Quote: "applyTo: **/*.html" (Supports: applyTo pattern) Quote: "that applies only to HTML files in your repository" (Supports: scope) Snapshot SHA-256: 73226b37445ce6fb5392352de82568d5f087d828a4e2b29625947096a8f61bdc (captured 2026-11-18T13:12:49Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:12:49Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:16:12Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:16:12Z Last attempt: 2026-11-20T13:16:12Z Notes and limitations: Extracted automatically from a single official source (section "Accessibility auditor"). Related: https://latestn.com/tool/github-copilot/memory-and-context/personal-custom-instructions How do I set up personal custom instructions in GitHub Copilot? https://latestn.com/tool/github-copilot/memory-and-context/provide-relevant-context How do I give GitHub Copilot relevant context in my prompts? https://latestn.com/tool/github-copilot/memory-and-context/repository-custom-instructions How do I set up repository custom instructions for GitHub Copilot? https://latestn.com/tool/github-copilot/memory-and-context/multiple-instruction-files-interaction How do multiple custom instruction files interact in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/memory-and-context/new-conversation-switch-tasks How do I start a new GitHub Copilot Chat conversation when switching tasks? https://latestn.com/tool/github-copilot/memory-and-context/organize-context-with-space How do I organize project context with a space in GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:09:52Z | changed | scope: — → applies only to HTML files in your repository | [1] 2026-11-17T13:36:27Z | changed | scope: path-specific → — | [1] 2026-11-13T03:33:58Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/memory-and-context/path-specific-custom-instructions-file/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/memory-and-context/path-specific-custom-instructions-file POST: https://latestn.com/dispute/tool/github-copilot/memory-and-context/path-specific-custom-instructions-file with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/memory-and-context/path-specific-custom-instructions-file?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a custom instructions file in GitHub Copilot that applies only to HTML files? Revision 3, last verified 2026-11-20T13:16:12Z. https://latestn.com/tool/github-copilot/memory-and-context/path-specific-custom-instructions-file (accessed 2026-11-21T09:54:41Z). @misc{LatestN_tool_github_copilot_memory_and_context_path_specific_custom_instructions_file_r3, title = {How do I create a custom instructions file in GitHub Copilot that applies only to HTML files?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/memory-and-context/path-specific-custom-instructions-file}}, note = {Revision 3; digest sha256:c1243f4d34e17439; last verified 2026-11-20T13:16:12Z; accessed 2026-11-21T09:54:41Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/memory-and-context/path-specific-custom-instructions-file