{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-empty-links-3d5b454b6e4d","title":"Fix Empty and Broken Links","summary":"Ensure all links have accessible text or labels to improve navigation for screen readers and users with disabilities. This includes adding descriptive text or aria-labels to icon-only links and removing or fixing broken links.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-empty-links-3d5b454b6e4d","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-empty-links-3d5b454b6e4d","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-empty-links-3d5b454b6e4d.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-empty-links-3d5b454b6e4d\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Every link must have accessible text (visible or via aria-label). Icon-only links need an aria-label describing the destination. Empty anchor tags are completely inaccessible\u2014always add content. Use visually-hidden text when visual labels are not desired.","instructions":"---\nname: empty-links\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Fix empty and broken links. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: beginner\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/empty-links\n---\n\n# Fix empty and broken links\n\nScreen readers announce empty links as just 'link' with no context\u2014users have no idea where they lead or what they do, making navigation impossible.\n\n## Quick Reference\n\n- Every link must have accessible text (visible or via aria-label)\n- Icon-only links need aria-label describing the destination\n- Empty anchor tags are completely inaccessible\u2014always add content\n- Use visually-hidden text when visual labels aren't desired\n\n## Check\n\nScan for links with no text content (empty anchor tags, icon-only links without labels). Verify all links have accessible names via text content, aria-label, or aria-labelledby. Check for broken link destinations.\n\n## Fix\n\nAdd descriptive text to empty links. For icon-only links, add aria-label describing the destination. Use visually-hidden text if visible labels are not desired. Remove or fix broken links.\n\n## Explain\n\nExplain how screen readers announce empty links as just 'link' with no context, leaving users unable to understand where the link leads or what action it performs.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Fix empty and broken links. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/empty-links\n","use_cases":["Reviewing HTML for accessibility compliance","Testing interactive components for screen reader compatibility","Auditing design-system patterns for accessibility"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/empty-links\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:01:17.000000Z","updated_at":"2026-11-23T04:55:08.000000Z","seo_title":"Fix Empty and Broken Links Accessibility","seo_description":"Ensure all links have accessible text or labels to improve navigation for screen readers and users with disabilities.","seo_keywords":["accessibility check for links","fix empty links in HTML","screen reader friendly links"]}}