-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathapply-bad.html
184 lines (160 loc) · 8.05 KB
/
apply-bad.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="description" content="A test web site for accessibility evaluations">
<title>Apply to Acme - the bad version | Acme Widgets</title>
<link rel="stylesheet" href="css/pure.css">
<link rel="stylesheet" href="css/goodbad.css">
<link href="https://rawgithub.com/tilomitra/csstypography/master/css/pure-typography.css" type="text/css" rel="stylesheet">
<style>
#menu .pure-menu-selected, #menu .pure-menu-heading {color:#fff;}
.visually-hidden {
position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
padding:0 !important;
border:0 !important;
height: 1px !important;
width: 1px !important;
overflow: hidden;
}
body:hover .visually-hidden a,
body:hover .visually-hidden input,
body:hover .visually-hidden button {
display: none !important;
}
</style>
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/layouts/side-menu-old-ie.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="css/layouts/side-menu.css">
<!--<![endif]-->
</head>
<body>
<div id="layout" class="pure-type">
<!-- Menu toggle -->
<a href="#menu" id="menuLink" class="menu-link" aria-owns="mainNav">
<!-- Hamburger icon -->
<span></span>
<i class="visually-hidden">Hamburger Menu button</i>
</a>
<div id="menu">
<div class="pure-menu">
<a class="pure-menu-heading" href="index.html">Acme</a>
<ul id="mainNav" class="pure-menu-list" role="navigation">
<li class="pure-menu-item"><a href="index.html" class="pure-menu-link">Home</a></li>
<li class="pure-menu-item"><a href="data-good.html" class="pure-menu-link">Products - Good</a></li>
<li class="pure-menu-item"><a href="data-bad.html" class="pure-menu-link">Products - Bad</a></li>
<li class="pure-menu-item"><a href="content-good.html" class="pure-menu-link">About - Good</a></li>
<li class="pure-menu-item"><a href="content-bad.html" class="pure-menu-link">About - Bad</a></li>
<li class="pure-menu-item"><a href="apply.html" class="pure-menu-link" >Apply - Good</a></li>
<li class="pure-menu-item"><a href="apply-bad.html" class="pure-menu-link pure-menu-selected" aria-current="page">Apply - Bad</a></li>
</ul>
</div>
</div>
<main id="main">
<header class="header">
<h1>Join the Acme Widgets Team</h1>
<h2>Good luck filling out this form</h2>
</header>
<div class="content">
<h2 class=" callout bad">We're excited to meet you</h2>
<p>
This version of the application form features common mistakes that make a form difficult to use. The labels are actually spans made to look like labels. All of the inputs are using the standard "text" type, and they are not using the standard name/id values that trigger browsers to autofill.
</p>
<h3 class="content-subhead">Bad Acme Application Form</h3>
<form action="thankyou.html" class="pure-form pure-form-stacked" style="position:relative"><!-- position relative for the roadrunner image -->
<div class="pure-g">
<div class="fieldset pure-u-1-2"><!-- div instead of fieldset -->
<span class="legend">Your personal information</span><!-- span instead of legend -->
<span class="label" role="contact">First Name</span><!-- span instead of label -->
<input type="text " name="f" id="f" placeholder="Jane"><!-- placeholder is not an adequate label -->
<span class="label">Last Name</span>
<input type="text " name="l" id="l" placeholder="Doe">
<span class="label">Telephone Number</span>
<input type="tel" name="t" id="t" placeholder="650-555-1212">
<span class="label">Email</span>
<input type="email" name="e" id="e" placeholder="jane@doe.com">
</div>
<div class="pure-u-1-2 fieldset">
<span class="legend">Your Address</span>
<span class="label" >Street Address</span>
<input type="text " name="s" id="s" placeholder="1 first ave">
<span class="label" >City</span>
<input type="text" name="c" id="c" placeholder="Any Town">
<span class="label" >State</span>
<select id="st" name="st">
<option>California</option>
<option>Not California</option>
</select>
<span class="label">Zip</span>
<input type="text" name="z" id="z">
<span class="label pure-checkbox">
<input type="checkbox" name="current" id="current">
This is my current address, I want to stay in this area</span>
</div>
<div class="pure-u-1-2 fieldset">
<span class="legend" aria-super="true">Current Employer</span>
<span class="label" >Company</span>
<input type="text" name="co" id="co">
<span class="label" >Job Title</span>
<input type="text" id="jo" name="jo">
<span class="label" >Street Address</span>
<input type="text " name="estreet" id="estreet" placeholder="1 first ave">
<span class="label" >City</span>
<input type="text" name="ecity" id="ecity" placeholder="Any Town">
<span class="label" >State</span>
<select id="estate" name="estate">
<option>California</option>
<option>Not California</option>
</select>
<span class="label" >Zipcode</span>
<input type="text" name="ezip" id="ezip">
<span class="label pure-checkbox">
<input type="checkbox" name="contact" id="contact" aria-selected="not yet">
It's ok to contact my current employer.
</span>
<span class="label" >When did you start working at this job?</span>
<input type="text" id="start" name="start">
</div>
<div class="pure-u-1-2 fieldset">
<span class="legend">Education</span>
<span class="label" >University</span>
<input type="text" name="uni" id="uni">
<span class="label" for="diploma">Upload your diploma</span>
<span class="pure-button" onClick="alert('nice diploma!');">Upload</span>
<span class="label" >Graduation Date</span>
<input type="text" name="grad" id="grad">
<div class="fieldset">
<span class="legend">Graduation Grade</span>
<span class="label pure-radio">
<input type="radio" name="grade" value="a">
A - Cream of the crop!</span>
<span class="label pure-radio">
<input type="radio" name="grade" value="b">
B - I slept in a few times</span>
<span class="label pure-radio">
<input type="radio" name="grade" value="c">
C - I'm just an average mug</span>
<span class="label pure-radio">
<input type="radio" name="grade" value="d">
D - The professors didn't like me</span>
<span class="label pure-radio">
<input type="radio" name="grade" value="f">
F - But I mastered the party circuit</span>
</div>
</div>
</div>
<button type="submit" class="pure-button pure-button-primary">Submit</button>
<img src="https://live.staticflickr.com/65535/49975010882_ebfb2e50ae_s.jpg" alt="Roadrunner photo by Kevin Gill" style="position:absolute; bottom:0; left:0; z-index:5">
<!-- this image will overlap the submit button. It will fail WCAG 2.2 AAA focus not obscured but pass WCAG 2.2 AA requirement of not completely obscured -->
</form>
</div>
</main>
</div>
<script src="js/ui.js"></script>
</body>
</html>