Skip to content

Commit 53717ba

Browse files
authored
Create error-empty-link.md
add new file
1 parent c9a8a6d commit 53717ba

1 file changed

Lines changed: 121 additions & 0 deletions

File tree

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# Error - Empty link
2+
- WAVE Category: Error
3+
- WAVE Error: Empty link
4+
5+
## Page Content Status
6+
- [X] WAVE Error guidance text
7+
- [ ] Example of a DOM Snippet Generated From WAVE Tool
8+
- Project Team Error guidance
9+
- [ ] Project Team Page Details
10+
- [ ] Project Team Issue and PR details
11+
- [ ] Project Team Solution
12+
- [ ] Credits/Authors
13+
14+
## WAVE Guidance
15+
16+
WAVE Tool's Reference material on Empty link may not specifically address your problem. We provide it here for optional reading.
17+
18+
??? Info "Click to see WAVE Tool Reference"
19+
20+
This content added 2026-04-07. Check for updated guidance at: <a href="https://wave.webaim.org/api/docs?format=html#link_empty" target="_blank">https://wave.webaim.org/api/docs?format=html#link_empty</a>
21+
22+
> ### WAVE Category
23+
> Errors
24+
> ### WAVE Error
25+
> Empty link
26+
> ### What It Means
27+
> A link contains no text.
28+
> ### Why It Matters
29+
> If a link contains no text, the function or purpose of the link will not be presented to the user. This can introduce confusion for keyboard and screen reader users.
30+
> ### What To Do
31+
> Remove the empty link or provide text within the link that describes the functionality and/or target of that link.
32+
> ### The Algorithm... in English
33+
> An anchor element has an href attribute, but contains no text (or only spaces) and no images with alternative text.
34+
> ### Standards and Guidelines
35+
> - [2.4.4 Link Purpose (In Context) (Level A)](https://webaim.org/standards/wcag/checklist#sc2.4.4)
36+
37+
## Example of a DOM Snippet Generated From WAVE Tool
38+
39+
> ```html
40+
> [HTML snippet showing the problematic code structure that WAVE detected]
41+
> ```
42+
43+
44+
## Project Team Error guidance
45+
46+
The following material covers how the Project Team has provided a solution to the Empty link WAVE Error.
47+
48+
### Project Page Details
49+
- Project Page name: [INSERT PAGE NAME or "ALL"]
50+
- Project Dev URL: [INSERT URL or "N/A"]
51+
- Requires sign in: [TRUE OR FALSE]
52+
- Required User Role: [INSERT ONE OF: Visitor, Logged in user, Admin, Security Admin]
53+
- Can access page directly from URL: [TRUE OR FALSE]
54+
- Accepts URL parameters: [TRUE OR FALSE]
55+
56+
### Project Team Issue and PR details
57+
- Related GitHub Issue(s):
58+
- [INSERT ISSUE URL]
59+
- Related Pull Request(s):
60+
- [INSERT PR URL]
61+
- React Component(s)
62+
- [INSERT PATH: e.g. path/to/Component.jsx]
63+
64+
### Project Team Solution
65+
66+
#### What is the specific problem that was occurring?
67+
<!-- Author Instructions: Add a detailed explanation of the specific accessibility problem, including context about when/where it occurs, what elements are involved, and why it's problematic for assistive technology users -->
68+
[INSERT CONTENT]
69+
70+
#### What is the proposed solution to this problem?
71+
<!-- Author Instructions: Add a few sentences describing the fix. "Why the Fix Works" comes later (see below). If there are lots of instructions required to explain the solution, include them in Developer Resources below -->
72+
[INSERT CONTENT]
73+
74+
#### Step-By-Step Guide
75+
<!-- Author Instructions: Replace details dropdown with N/A if this does not apply -->
76+
77+
??? Info "Click to see step-by-step guide"
78+
79+
[ADD DETAILED INSTRUCTIONS HERE]
80+
81+
#### Other Technical Details
82+
<!-- Author Instructions: Write N/A if this does not apply -->
83+
84+
??? Info "Click to see other technical details"
85+
86+
[INSERT OTHER DETAILS e.g. Prop References, Return Value ]
87+
88+
#### Code Snippet With Solution
89+
??? Info "Click to see code snippets"
90+
91+
[INSERT PATH file/path/to/Snippet.jsx]
92+
93+
```jsx
94+
[Code example showing the fix/solution]
95+
```
96+
97+
#### Why the Fix Works
98+
<!-- Author Instruction: Add an explanation of how the code changes resolve the accessibility issue and why this approach was chosen -->
99+
[INSERT CONTENT]
100+
101+
#### Where this solution is applicable
102+
<!-- Author Instruction: Add a bullet point list of scenarios that might trigger this error and would be fixed by applying the provided solution, e.g. particular groupings of html elements, user interactivity, code-specific edge cases -->
103+
- [INSERT SCENARIO 1]
104+
- [INSERT SCENARIO 2]
105+
- [INSERT SCENARIO N]
106+
107+
#### Screenshots of WAVE Error
108+
109+
<!-- Author Instructions: when including markdown images, ensure they are responsive by specifying EITHER width OR height. Do not provide both. -->
110+
111+
??? Info "1. Descriptive Title for Screenshot Set 1"
112+
113+
Description/text for image
114+
115+
[INSERT IMAGE HERE]
116+
117+
## Credits/Authors
118+
<!-- Author Instructions: Add bullet points with GitHub handles of all HfLA members who contributed to this wiki page and/or contributed to Pull Requests that provided solutions for this page -->
119+
- @Rabia2219
120+
- [INCLUDE Contributor 2]
121+
- [INCLUDE Contributor N]

0 commit comments

Comments
 (0)