{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-decorative-elements-08e86131ecdb","title":"Hide Decorative Elements from Assistive Technology","summary":"Ensure decorative elements are hidden from assistive technology by using alt='', aria-hidden='true', and CSS background-image for decorative visuals, improving accessibility and user experience.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-decorative-elements-08e86131ecdb","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-decorative-elements-08e86131ecdb","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-decorative-elements-08e86131ecdb.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-decorative-elements-08e86131ecdb\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Use alt='' for decorative images, aria-hidden='true' for SVGs and icons, and CSS background-image for purely decorative visuals. Ensure that decorative elements do not interfere with screen readers or keyboard navigation.","instructions":"---\nname: decorative-elements\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Hide decorative elements from assistive technology. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant. If an image is clearly decorative, default to no finding unless the snippet shows an actual issue such as broken semantics, focusability, or visible layout instability.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: beginner\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/decorative-elements\n---\n\n# Hide decorative elements from assistive technology\n\nScreen readers announce every image and icon\u2014decorative elements clutter the experience with meaningless 'image, decorative border, image, bullet' announcements.\n\n## Quick Reference\n\n- Use alt='' (empty) for decorative images\u2014not alt='image' or missing alt\n- Add aria-hidden='true' to decorative SVGs and icons\n- Use CSS background-image for purely decorative visuals\n- Role='presentation' removes semantic meaning from elements\n- Do not automatically raise performance findings on decorative micro-assets unless the snippet shows real layout instability\n- Example safe pattern: `<img src=\"\/divider.svg\" alt=\"\" aria-hidden=\"true\">` is usually a decorative no-op, not a finding by itself\n\n## Check\n\nVerify decorative images have empty alt attributes (alt=''), decorative icons use aria-hidden='true', and background images used for decoration are not announced by screen readers. Do not report decorative images as accessibility or performance failures unless the code shows a concrete problem rather than a hypothetical optimization.\n\n## Fix\n\nAdd alt='' to decorative img elements. Add aria-hidden='true' to decorative SVGs and icon fonts. Use CSS background-image for purely decorative visuals instead of img elements.\n\n## Explain\n\nExplain how screen readers announce every image and element unless explicitly hidden, and why decorative content clutters the experience for users navigating with assistive technology.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Hide decorative elements from assistive technology. 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\/decorative-elements\n","use_cases":["Reviewing HTML for decorative images and icons","Checking accessibility of SVGs and icons","Ensuring background images are not announced by screen readers"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/decorative-elements\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:50:16.000000Z","updated_at":"2026-11-23T04:54:56.000000Z","seo_title":"Hide decorative elements from assistive technology checklist","seo_description":"Ensure decorative elements are hidden from assistive technology to improve accessibility and user experience. Use alt='', aria-hidden='true', and CSS background-image for","seo_keywords":["hide decorative elements accessibility","decorative images alt attribute","aria-hidden for icons","screen reader accessibility","decorative SVG accessibility"]}}