-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
1390 lines (1198 loc) · 48.9 KB
/
index.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Accessibility Fails</title>
<link rel="stylesheet" href="css/normalize.css"/>
<link rel="stylesheet" href="css/main.css"/>
<link rel="stylesheet" href="css/test1.css"/>
<link rel="stylesheet" href="css/test2.css"/>
<script src="js/jquery-1.12.0.min.js"></script>
<script src="js/main.js"></script>
<script src="js/main2.js"></script>
</head>
<body>
<div class="container" id="main">
<h1>Accessibility Fails</h1>
<p>
Last updated: 2 August 2016 by
<a href="https://twitter.com/dugboticus">@dugboticus</a> and
<a href="https://twitter.com/cfq">@cfq</a>
</p>
<p>The aim of this page is to run autmated tools against it to see which fails are identified.</p>
<p>There are 144 fails grouped into 19 categories. This is a work in progress, we'll be adding many more fails.</p>
<nav>
<ul>
<li><a href="#content">Content</a> 5</li>
<li><a href="#pagelayout">Page Layout</a> 1</li>
<li><a href="#colourandcontrast">Colour and Contrast</a> 6</li>
<li><a href="#typography">Typography</a> 8</li>
<li><a href="#languageofcontent">Language of content</a> 9</li>
<li><a href="#pagetitle">Page Title</a> 3</li>
<li><a href="#headings">Headings</a> 4</li>
<li><a href="#lists">Lists</a> 4</li>
<li><a href="#tables">Tables</a> 11</li>
<li><a href="#images">Images</a> 10</li>
<li><a href="#multimedia">Multimedia</a> 3</li>
<li><a href="#links">Links</a> 20</li>
<li><a href="#buttons">Buttons</a> 4</li>
<li><a href="#forms">Forms</a> 19</li>
<li><a href="#navigation">Navigation</a> 2</li>
<li><a href="#keyboardaccess">Keyboard Access</a> 16</li>
<li><a href="#frames">Frames</a> 2</li>
<li><a href="#html">HTML</a> 11</li>
<li><a href="#css">CSS</a> 6</li>
</ul>
</nav>
<h2 id="content">Content</h2>
<h3>Plain Language is not used</h3>
<div class="example">
Title I of the CARE Act creates a program of formula and supplemental competitive grants to help metropolitan areas
with 2,000 or more reported AIDS cases meet emergency care needs of low-income HIV patients. Title II of the Ryan
White Act provides formula grants to States and territories for operation of HIV service consortia in the localities
most affected bu the epidemic, provision of home and community -based care, continuation of insurance coverage for
persons with HIV infection, and treatments that prolong life and prevent serious deterioration of health.
Up to 10 percent of the funds for this program can be used to support Special Projects of National Significance.
</div>
<h3>Content is not organised into into well-defined groups or chunks, using headings, lists, and other visual mechanisms</h3>
<div class="example">
insert_example
</div>
<h3>First instance of abbreviation not expanded</h3>
<div class="example">
<abbr>GDS</abbr> is part of the Cabinet Office. Our job is digital transformation of government.
</div>
<h3>Content identified by location </h3>
<div class="example example--contain">
<p>The artist on the right won the Album of the year</p>
<a href="swift.html" style="float:right">Taylor Swift</a>
<a href="sheeran.html" style="float:left">Ed Sheeran</a>
</div>
<h3>Content is not in correct reading order in source code</h3>
<div class="example example--contain">
<h4>3-Step Skin Care</h4>
<div style="float:right; width:33%">Moisturise</div>
<div style="float:right; width:33%">Exfoliate</div>
<div style="float:right; width:33%">Cleanse</div>
</div>
<h2 id="pagelayout">Page Layout</h2>
<h3>Wide page forces users to scroll horizontally</h3>
<div class="example example--wide">
<p class="constrained">When sites are constructed to require horizontal scrolling in order to navigate or read content at a normal size of 100% using standard screen sizes, additional problems can arise for users with low vision or mobility impairments.</p>
<p style="float:right;">This is some text you have to horizontally scroll to read.</p>
</div>
<h2 id="colourandcontrast">Colour and Contrast</h2>
<h3>Color alone is used to convey content</h3>
<div class="example">
<p>The green mushrooms listed here are OK to eat. The red mushrooms will kill you.</p>
<ul>
<li class="poisonous">Amanita</li>
<li class="safe">Chanterelle</li>
<li class="safe">Porcini</li>
<li class="safe">Shitake</li>
<li class="poisonous">Tylopilus</li>
</ul>
</div>
<h3>Small text does not have a contrast ratio of at least 4.5:1 so does not meet AA</h3>
<div class="example">
<p class="low-contrast-small-aa">This small text does not have enough contrast with it's background</p>
</div>
<h3>Large text does not have a contrast ratio of at least 3:1 so does not meet AA</h3>
<div class="example">
<p class="low-contrast-large-aa">This large text does not have enough contrast with it's background</p>
</div>
<h3>Small text does not have a contrast ratio of at least 7:1 so does not meet AAA</h3>
<div class="example">
<p class="low-contrast-small-aaa">This small text does not have enough contrast with it's background</p>
</div>
<h3>Large text does not have a contrast ratio of at least 4.5:1 so does not meet AAA</h3>
<div class="example">
<p class="low-contrast-large-aaa">This large text does not have enough contrast with it's background</p>
</div>
<!-- From test2 -->
<h3>Focus not visible</h3>
<div class="example">
<a href="#" class="not-visible-outline-link">This links has visible focus</a> but this button
<button class="not-visible-outline">Search</button> doesn't
</div>
<!-- /From test2 -->
<h2 id="typography">Typography</h2>
<h3>Very small text found</h3>
<div class="example">
<p class="small-text">This is some tiny text, much too small for some people to read</p>
</div>
<h3>Italics used on long sections of text</h3>
<div class="example">
<p class="italic">Italics are sometimes used to highlight text. But you shouldn't use italicized text because they make letters hard to read. The letters have a jagged line compared to non-italic fonts. The letters also lean over making it hard for dyslexic users to make out the words. When the text size is small, the text is even more illegible.</p>
</div>
<h3>All caps text found</h3>
<div class="example">
<p class="all-caps">Typing sentences or phrases IN ALL CAPITALS is rarely a good idea. It may make sense under some circumstances, but only rarely. Lengthy segments of capitalized content are more difficult to read. In some cases, a screen reader may interpret ALL CAPITAL text as being an acronym and may read it as letters rather than words. For example, a screen reader may read the uppercase text CONTACT US as "Contact U. S." because it interprets the uppercase "US" as being an acronym for "United States".</p>
</div>
<h3>Justified text found</h3>
<div class="example">
<p class="justify">When text is justified to both margins it may add additional spaces between words which may be difficult for users with visual or cognitive impairments to read. Full text justification can also cause words to be spaced closely together thus making it difficult to determine where a word starts and ends.</p>
</div>
<h3>Inadequate line height used</h3>
<div class="example">
<p class="line-height">Many people with cognitive disabilities have trouble tracking lines of text when a block of text is single spaced. Providing spacing between 1.5 to 2 allows them to start a new line more easily once they have finished the previous one.</p>
</div>
<h3>Long lines of text</h3>
<div class="example example--wide">
<p>For people with some reading or vision disabilities, long lines of text can become a significant barrier. They have trouble keeping their place and following the flow of text. Having a narrow block of text makes it easier for them to continue on to the next line in a block. Lines should not exceed 80 characters</p>
</div>
<h3>Blink element found</h3>
<div class="example">
<blink>Blinking text and moving text (such as a marquee) can distract the reader's attention. This is especially relevant to people with attention deficits or cognitive disabilities. Neither is likely to cause a seizure, but they are likely to decrease the readability of the document as a whole and increase the time it takes for users to finish reading it.</blink>
</div>
<h3>Marquee element found</h3>
<div class="example">
<marquee>The BLINK and MARQUEE element animates content in a way that cannot be overridden or disabled by the user.</marquee>
</div>
<h2 id="languageofcontent">Language of content</h2>
<h3>html element is missing a lang attribute</h3>
<div class="example">
<a href="missing.html">Example page with a missing lang attribute</a>
</div>
<h3>html element has an empty lang attribute</h3>
<div class="example">
<a href="empty.html">Example page with an empty lang attribute</a>
</div>
<h3>html element has an invalid value in the lang attribute</h3>
<div class="example">
<a href="invalid.html">Example page with a lang attribute set to an invalid</a>
</div>
<h3>html element has lang attribute set to wrong language</h3>
<div class="example">
<a href="inappropriate.html">Example page with a lang attribute set to the wrong language</a>
</div>
<h3>lang attribute not used to identify change of language</h3>
<div class="example">
<p>Mother, he's asking you to go. He's saying, "Allons, Madame plaisante!"</p>
</div>
<h3>lang attribute used to identify change of language, but with invalid value</h3>
<div class="example">
<p>Mother, he's asking you to go. He's saying, <span lang="frrr">"Allons, Madame plaisante!"</span></p>
</div>
<h3>lang attribute used to identify change of language, but with wrong language</h3>
<div class="example">
<p>Mother, he's asking you to go. He's saying, <span lang="es">"Allons, Madame plaisante!"</span></p>
</div>
<!-- From test2 -->
<h3>Text language changed without required change in direction</h3>
<div class="example">
<p lang="ar">الإعفاء الإلكتروني من التأشيرة</p>
</div>
<h3>Text language is in the wrong direction</h3>
<div class="example">
<p dir="rtl" lang="en">Electronic visa waiver</p>
</div>
<!-- /From test2 -->
<h2 id="pagetitle">Page Title</h2>
<h3>Missing page title</h3>
<div class="example">
<a href="missing.html">Example page with a missing page title</a>
</div>
<h3>Empty page title</h3>
<div class="example">
<a href="empty.html">Example page with a empty page title</a>
</div>
<h3>Inappropriate page title</h3>
<div class="example">
<a href="inappropriate.html">Example page with a inappropriate page title</a>
</div>
<h2 id="headings">Headings</h2>
<h3>Missing H1</h3>
<div class="example">
<a href="missing.html">Example page with no H1</a>
</div>
<h3>Headings not structured in a hierarchical manner</h3>
<div class="example">
<h3>Heading 3</h3>
<p>Pages should be structured in a hierarchical manner, generally with one 1st degree headings (h1) being the
most important (usually page titles or main content heading), then 2nd degree headings (h2 - usually major
section headings), down to 3rd degree headings (sub-sections of the h2), and so on. </p>
<h5>Heading 5</h5>
<p>Technically, lower degree headings should be contained within headings of the next highest degree
(i.e., one should not skip heading levels, such as from an h2 to an h4, going down the document).</p>
<h4>Heading 4</h4>
<p>This is an example where heading levels have been skipped and are not in a logical order, which makes the page
difficult to understand and navigate for people using assitive technologies such as screen reader.</p>
</div>
<h3>Empty heading</h3>
<div class="example">
<h4></h4>
<p>This paragraph is preceded by an empty H4</p>
</div>
<h3>Text formatting used instead of an actual heading</h3>
<div class="example">
<div class="fake-heading">Fake Heading</div>
<p>This paragraph is preceded by a div that is styled to look like a heading</p>
</div>
<h2 id="lists">Lists</h2>
<h3>List not marked up as a list</h3>
<div class="example">
* apple <br />
* orange <br />
* banana <br />
* pear
</div>
<h3>Improperly nested lists</h3>
<div class="example">
<ul>
<ul>
<li>improperly nested</li>
</ul>
</ul>
</div>
<h3>LI element with no parent</h3>
<div class="example">
<li>
no parent
</li>
</div>
<h3> DT or DD elements that are not contained within a DL element</h3>
<div class="example">
<dt>html</dt>
<dd>a markup language for describing web documents</dd>
</div>
<h2 id="tables">Tables</h2>
<h3>Table is missing a caption</h3>
<div class="example">
<table>
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Age</th>
<th scope="col">Birthday</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Jackie</th>
<td>5</td>
<td>April 5</td>
</tr>
<tr>
<th scope="row">Beth</th>
<td>8</td>
<td>January 14</td>
</tr>
</tbody>
</table>
</div>
<h3>Table has an empty table header</h3>
<div class="example">
<table>
<caption>Shelly's Daughters</caption>
<thead>
<tr>
<th></th>
<th scope="col">Age</th>
<th scope="col">Birthday</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Jackie</th>
<td>5</td>
<td>April 5</td>
</tr>
<tr>
<th scope="row">Beth</th>
<td>8</td>
<td>January 14</td>
</tr>
</tbody>
</table>
</div>
<h3>Table has no scope attributes</h3>
<div class="example">
<table>
<caption>Shelly's Daughters</caption>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>Birthday</th>
</tr>
</thead>
<tbody>
<tr>
<th>Jackie</th>
<td>5</td>
<td>April 5</td>
</tr>
<tr>
<th>Beth</th>
<td>8</td>
<td>January 14</td>
</tr>
</tbody>
</table>
</div>
<h3>Table has no table headings</h3>
<div class="example">
<table>
<caption>Shelly's Daughters</caption>
<thead>
<tr>
<td>Name</td>
<td>Age</td>
<td>Birthday</td>
</tr>
</thead>
<tbody>
<tr>
<td>Jackie</td>
<td>5</td>
<td>April 5</td>
</tr>
<tr>
<td>Beth</td>
<td>8</td>
<td>January 14</td>
</tr>
</tbody>
</table>
</div>
<h3>Table that only has TH elements in it</h3>
<div class="example">
<table>
<thead>
<tr>
<th>Foo</th>
<th>Bar</th>
<th>Bat</th>
<th>Baz</th>
</tr>
</thead>
</table>
</div>
<h3>Table nested within table header</h3>
<div class="example">
<table>
<tr>
<th>
<table>
<tr>
<th>b.a</th>
</tr>
<tr>
<td>b.b</td>
</tr>
</table>
</th>
</tr>
<tr>
<td>a.b</td>
</tr>
</table>
</div>
<h3>Table nested within table</h3>
<div class="example">
<table>
<tr>
<th>1.1</th>
</tr>
<tr>
<td>
<table>
<tr>
<th>2.1</th>
</tr>
<tr>
<td>2.2</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<h3>Table used for layout</h3>
<div class="example">
<table>
<tr>
<td>navigation</td>
<td>main content</td>
</tr>
</table>
</div>
<!-- From test2 -->
<h3>Table with inconsistent numbers of columns in rows</h3>
<div class="example">
<table>
<caption>Requester information</caption>
<thead>
<tr>
<th colspan="10">Requester Information</th>
</tr>
</thead>
<tbody>
<tr>
<th colspan="1" id="name" class="label">Name</th>
<td colspan="7" headers="name">Jon Smith</td>
<th colspan="1" id="date" class="label">Date</th>
<td colspan="1" headers="date">9/9/2005</td>
</tr>
<tr>
<th colspan="1" id="dept" class="label">Department</th>
<td colspan="9" headers="dept">Customer Service</td>
</tr>
<tr>
<th colspan="1" id="remail" class="label">E-mail</th>
<td colspan="4" headers="remail">[email protected]</td>
<th colspan="1" id="rphone" class="label">Phone</th>
<td colspan="4" headers="rphone">07700 900258</td>
</tr>
</tbody>
</table>
</div>
<h3>Table with some empty cells</h3>
<div class="example">
<table>
<caption>Bills before Parliament 2016-17</caption>
<thead>
<tr>
<th>
Current House
</th>
<th>
Bill title
</th>
<th>
Last updated
</th>
</tr>
</thead>
<tbody>
<tr>
<td> </td>
<td>A</td>
<td> </td>
</tr>
<tr>
<td>
Lords
</td>
<td>
Abortion (Disability Equality) Bill [HL]
</td>
<td>26.05.2016</td>
</tr>
<tr>
<td>
Lords
</td>
<td>
Access to Palliative Care Bill [HL]
</td>
<td>10.06.2016</td>
</tr>
</tbody>
</table>
</div>
<h3>Table with column headers and double row headers</h3>
<div class="example">
<table>
<caption>Road Traffic at Junctions</caption>
<tr>
<th>Road</th>
<th>Junction</th>
<th>Car</th>
<th>Bus</th>
</tr>
<tr>
<th>Regent Street</th>
<th>Oxford Street</th>
<td>307</td>
<td>12</td>
</tr>
<tr>
<th>Regent Street</th>
<th>Bond Street</th>
<td>1731</td>
<td>58</td>
</tr>
<tr>
<th>Southwark Street</th>
<th>Union Street</th>
<td>1975</td>
<td>51</td>
</tr>
</table>
</div>
<!-- /From test2 -->
<h2 id="images">Images</h2>
<h3>Image with no alt attribute</h3>
<div class="example">
<img src="images/bbc-blocks-dark.png" />
</div>
<h3>Image that conveys information has an empty alt attribute </h3>
<div class="example">
<img src="images/bbc-blocks-dark.png" alt="" />
</div>
<h3>Image that conveys information has inappropriate alt text </h3>
<div class="example">
<img src="images/bbc-blocks-dark.png" alt="Twitter" />
</div>
<h3>Image alt attribute contains image file name </h3>
<div class="example">
<img src="images/bbc-blocks-dark.png" alt="bbc-blocks-dark.png" />
</div>
<h3>Image with presentation role has non-empty alt</h3>
<div class="example">
<img role="presentation" src="images/decoration.png" width="368" height="118" alt="Decorative line clipart">
</div>
<h3>Image has empty alt and non-empty title</h3>
<div class="example">
<img src="images/bbc-blocks-dark.png" alt="" title="BBC"/>
</div>
<h3>Image has alt and title that are different</h3>
<div class="example">
<img src="images/bbc-blocks-dark.png" alt="BBC" title="BBC homepage"/>
</div>
<h3>Background image that conveys information does not have a text alternative</h3>
<div class="example">
<div class="warning-icon">
Taking too much of your pension money in early retirement could mean you don't have enough for later.
</div>
</div>
<h3>A distraction is present, an animated gif</h3>
<div class="example">
<img src="images/animated-tree.gif" width="157" height="193" alt="Animated gif of a Christmas tree with a toy train round and round the base of the tree">
</div>
<!-- From test2 -->
<h3>Image with partial text alternative</h3>
<div class="example">
<p>The image below contains a lot of information, such as which departments the sale is on. The text alternative in the alt attribute does not include this information, only a partial "25% off sale"</p>
<img src="images/sale.jpg" alt="25% off sale" />
</div>
<!-- /From test2 -->
<h2 id="multimedia">Multimedia</h2>
<h3>Embedded video file is missing text alternative</h3>
<div class="example">
<video controls>
<source src="http://introducinghtml5.com/examples/ch04/leverage-a-synergy.ogv" type='video/ogg; codecs="theora, vorbis"' />
<source src="http://introducinghtml5.com/examples/ch04/leverage-a-synergy.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
</video>
</div>
<h3>Embedded audio file is missing text alternative</h3>
<div class="example">
<audio src="http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg" controls></audio>
</div>
<h3>Flashing content doesn't have warning</h3>
<div class="example">
<iframe width="560" height="315" title="Banned Pokemon scene" src="https://www.youtube.com/embed/gwoQRKCEHgY" frameborder="0" allowfullscreen></iframe>
</div>
<h2 id="links">Links</h2>
<h3>Uninformative link text</h3>
<div class="example">
<h4>Polar bear</h4>
<p>The polar bear is a carnivorous bear whose native range lies largely within the Arctic Circle,
encompassing the Arctic Ocean, its surrounding seas and surrounding land masses.</p>
<a href="https://en.wikipedia.org/wiki/Polar_bear">Read more</a>
</div>
<h3>Non-specific link text</h3>
<div class="example">
<a href="rockies.html">Click here</a> for more information on the Rocky Mountains.
</div>
<h3>Link text does not make sense out of context</h3>
<div class="example">
<p>To know more about me, visit my <a href="page.html">page</a>.</p>
</div>
<h3>Adjacent links going to the same destination</h3>
<div class="example">
<a href="https://en.wikipedia.org/wiki/Red_panda"><img src="images/red_panda.jpg" width="220" height="165" alt="Red Panda" /></a>
<a href="https://en.wikipedia.org/wiki/Red_panda">Red Panda</a>
</div>
<h3>Image link alt text repeats text in the link</h3>
<div class="example">
<a href="https://en.wikipedia.org/wiki/Red_panda">
<img src="images/red_panda.jpg" width="220" height="165" alt="Red Panda" />
Red Panda
</a>
</div>
<h3>Image link with no alternative text</h3>
<div class="example">
<a href="http://www.bbc.co.uk"><img src="images/bbc-blocks-dark.png" alt="" /></a>
</div>
<h3>Blank link text</h3>
<div class="example">
<a href="http://www.google.com"></a>
</div>
<h3>Link contains only a full stop</h3>
<div class="example">
Visit the GOV.UK website <a href="https://www.gov.uk/">.</a>
</div>
<h3>Link with the same text go to different pages</h3>
<div class="example">
<a href="https://en.wikipedia.org/wiki/Lion">Lions</a> are the only truly social cats, with related females
living together in prides overseen by male coalitio that compete for possession in fierce and often fatal battles.
<a href="http://animals.nationalgeographic.com/animals/mammals/african-lion/">Lions</a> are predatory carnivores and it's the females that perform most of the hunting at night; the majority
of the prey being antelope, zebra and wildebeest.
</div>
<h3>Link text with identical title</h3>
<div class="example">
<a href="http://www.google.com" title="Google">Google</a>
</div>
<h3>Link launches new window with no warning</h3>
<div class="example">
<a href="https://twitter.com/" target="_blank">Twitter</a>
</div>
<h3>Link not clearly identifiable and distinguishable from surrounding text</h3>
<div class="example">
<p class="unobvious-link">Find out more about <a href="http://www.bbc.co.uk/programmes/b006q2x0">Doctor Who</a></p>
</div>
<h3>Link to pdf does not include information on file format and file size</h3>
<div class="example">
<a href="http://www.bdadyslexia.org.uk/common/ckeditor/filemanager/userfiles/About_Us/policies/Dyslexia_Style_Guide.pdf">Dyslexia style guide</a>
</div>
<h3>Link to an image, no text alternative</h3>
<div class="example">
My favourite <a href="images/bat.jpg">bat</a>
</div>
<h3>Link to a multimedia file, no transcript</h3>
<div class="example">
<a href="interview.mov">Watch the interview</a>
</div>
<h3>Links to a sound file, no transcript</h3>
<div class="example">
<a href="interview.mp3">Listen to the interview</a>
</div>
<h3>Links not seperated by printable characters</h3>
<div class="example">
<a href="a.html">Page A</a> <a href="b.html">Page B</a> <a href="c.html">Page C</a>
</div>
<h3>Link to #, invalid hypertext reference</h3>
<div class="example">
<a href="#">Do something</a>
</div>
<h3>Link to javascript, invalid hypertext reference</h3>
<div class="example">
<a href="javascript:alert('Hello world!')">Press me!</a>
</div>
<!-- From test2 -->
<h3>Identifying links by colour alone</h3>
<div class="example">
<p class="links-by-colour-alone">
<a href="#">A normal link</a>
<br />
Some text
<br />
<a class="colour-alone-link" href="#">Link only identifiable by colour alone</a>
</p>
</div>
<!-- /From test2 -->
<h2 id="buttons">Buttons</h2>
<h3>Empty button</h3>
<div class="example">
<button></button>
</div>
<h3>Image button has no alt attribute</h3>
<div class="example">
<input type="image" src="images/submit.png">
</div>
<h3>Empty alt attribute on image button</h3>
<div class="example">
<input type="image" src="images/submit.png" alt="">
</div>
<h3>Uninformative alt attribute value on image button</h3>
<div class="example">
<input type="image" src="images/submit.png" alt="click" />
</div>
<h2 id="forms">Forms</h2>
<h3>Fieldset without a legend</h3>
<div class="example">
<fieldset>
I am a fieldset without a legend
</fieldset>
</div>
<h3>Empty legend</h3>
<div class="example">
<fieldset>
<legend></legend>
</fieldset>
</div>
<h3>Form element has no label</h3>
<div class="example">
<input type="text">
</div>
<h3>Empty label found</h3>
<div class="example">
<label for="empty"></label>
<input type="text" id="empty" value="">
</div>
<h3>Placeholder no label</h3>
<div class="example">
<input type="search" name="q" id="search-main" Placeholder="Search">
<input class="submit" type="submit" value="Search">
</div>
<h3>Non-unique field label found</h3>
<div class="example">
<label for="x_3">Name
<input type="text" name="x_3" id="x_3">
</label><br >
<label for="x_4">Name
<input type="text" name="x_4" id="x_4">
</label>
</div>
<h3>Field hint not associated with input</h3>
<div class="example">
<label class="form-label" for="ni-number">
National Insurance number
</label>
<p class="form-hint">It'll be on your last payslip. For example, JH 21 90 0A.</p>
<input class="form-control" id="ni-number" type="text">
</div>
<h3>Group of radio buttons not enclosed in a fieldset</h3>
<div class="example">
<h4>Do you already have a personal user account?</h4>
<label class="block-label" for="radio-inline-1">
<input id="radio-inline-1" type="radio" name="radio-inline-group" value="Yes">
Yes
</label><br />
<label class="block-label" for="radio-inline-2">
<input id="radio-inline-2" type="radio" name="radio-inline-group" value="No">
No
</label>
</div>
<h3>Group of check boxes not enclosed in a fieldset</h3>
<div class="example">
<h4>Which types of waste do you transport regularly?</h4>
<label class="block-label" for="waste-type-1">
<input id="waste-type-1" name="waste-types" type="checkbox" value="waste-animal">
Waste from animal carcasses
</label><br />
<label class="block-label" for="waste-type-2">
<input id="waste-type-2" name="waste-types" type="checkbox" value="waste-mines">
Waste from mines or quarries
</label><br />
<label class="block-label" for="waste-type-3">
<input id="waste-type-3" name="waste-types" type="checkbox" value="waste-farm-agricultural">
Farm or agricultural waste
</label>
</div>
<!-- From test2 -->
<h3>Errors are not identified</h3>
<div class="example">
<form class="errors-badly-identified errors-not-identified">
<div class="validation-summary" role="alert">
You need to fix the errors on this page before continuing.
</div>
<label>
Name
<input type="text" name="name" />
</label>
<label>
Surname
<input type="text" name="surname" />
</label>
<label>
Date of birth
<input type="text" name="date-of-birth" />
</label>
</form>
</div>
<h3>Errors identified by colour only</h3>
<div class="example">
<form class="errors-badly-identified errors-colour-only">
<div class="validation-summary" role="alert">
You need to fix the errors on this page before continuing.
</div>
<label>
Passport number
<input type="text" class="has-errors" name="name" />
</label>
<label>
Name on passport
<input type="text" name="surname" />
</label>
<label>
Date of expiry
<input type="text" class="has-errors" name="date-of-birth" />
</label>
</form>
</div>
<h3>Errors identified with a poor colour contrast</h3>
<div class="example">
<form class="errors-badly-identified error-poor-contrast">
<div class="validation-summary" role="alert">
You need to fix the errors on this page before continuing.
</div>
<label>
Claimant's name
<input type="text" class="has-errors" name="name" />
</label>
<label>
Claimant's surname
<input type="text" name="surname" />
</label>
<label>
Claimant's date of birth
<input type="text" class="has-errors" name="date-of-birth" />
</label>
</form>
</div>
<h3>Error messages - no suggestion for corrections given, eg. required format</h3>
<div class="example">
<label class="required-format-not-given">
Phone number
<span class="error-message">is not valid</span>
<input class="has-errors" type="tel" required pattern="7[0-9]{9}" />
</label>
</div>
<h3>Missing labels in checkboxes</h3>
<div class="example">
<fieldset>
<legend>What is your nationality?</legend>
<label>British (including English, Scottish, Welsh and Northern Irish)</label>
<input type="checkbox" id="nationality_british" name="nationality.british" value="true">
<label>Irish</label>
<input type="checkbox" id="nationality_irish" name="nationality.irish" value="true">
<label>Citizen of a different country</label>
<input type="checkbox" id="nationality_hasOtherCountry" name="nationality.hasOtherCountry" value="true">
</fieldset>
</div>
<h3>Two unique labels, but identical for= attributes</h3>
<div class="example">
<label for="two-labels-day">Date of issue</label>
<p>
<label for="two-labels-day">Day</label>
<input type="text" id="two-labels-day" />
<label for="two-labels-month">Month</label>
<input type="text" id="two-labels-month" />