-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructure.php
More file actions
130 lines (104 loc) · 4.35 KB
/
Copy pathstructure.php
File metadata and controls
130 lines (104 loc) · 4.35 KB
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
<?php
$pageTitle = 'Structure';
$extraStyles = '<style>
.fake-heading {
font-size: 2em;
font-weight: bold;
display: block;
margin-top: 1em;
margin-bottom: 0.5em;
}
</style>';
include 'includes/header.php';
?>
<!-- H1 missing -->
<h2>1.3.1 Info and Relationships - Skipped Headings</h2>
<p>Starting with H2, then skipping to H4.</p>
<h4>Subsection (H4)</h4>
<p>Content here.</p>
<!-- Visual heading not semantic -->
<div class="fake-heading">Visual Heading (Not H tag)</div>
<p>The text above looks like a heading but is a div.</p>
<h2>1.3.1 Info and Relationships - Misused Blockquote</h2>
<blockquote>
This is not a quote, just indented text for visual style.
</blockquote>
<h2>1.3.1 Info and Relationships - Misused Definition List</h2>
<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<!-- Missing DD -->
<dt>Term 2</dt>
<!-- Missing DT -->
<dd>Definition for nothing</dd>
</dl>
<h2>1.3.1 Info and Relationships - Ordered List Visual Only</h2>
<p>
1. Item one<br>
2. Item two<br>
3. Item three
</p>
<h2>1.3.1 Info and Relationships - More Skipped Headings</h2>
<h5>Skipping H3 and H4</h5>
<p>Content under H5.</p>
<h6>Skipping even more</h6>
<p>Content under H6.</p>
<!-- Deep nesting -->
<div id="wrapper">
<div class="container">
<div class="content-area">
<div class="main-body">
<div class="article-wrapper">
<div class="text-block">
Deeply nested content without landmarks.
</div>
</div>
</div>
</div>
</div>
</div>
<h2>1.3.1 Info and Relationships - Misused List Elements</h2>
<!-- LI outside UL/OL -->
<li>Orphan item 1</li>
<li>Orphan item 2</li>
<div>
<li>Item in div</li>
<li>Item in div</li>
</div>
<!-- P acting as header -->
<p style="font-weight: bold; font-size: 1.5em; margin-bottom: 0;">Bad Heading 1</p>
<p>Content for bad heading.</p>
<p style="font-weight: bold; font-size: 1.5em; margin-bottom: 0;">Bad Heading 2</p>
<p>Content for bad heading.</p>
<hr>
<h2>Identification & Navigation Issues (Level AA/AAA)</h2>
<h3>1.3.6 Identify Purpose (AAA)</h3>
<p>The following icons use ambiguous characters/layout without semantic identification (landmarks or specific ARIA roles), making it hard for tools to determine their purpose (e.g., personalization tools).</p>
<div style="border:1px solid #ccc; padding:10px;">
<span style="font-size:24px;">🏠</span> <!-- Home icon, no label/role -->
<span style="font-size:24px;">⚙️</span> <!-- Settings icon, no label/role -->
<span style="font-size:24px;">❓</span> <!-- Help icon, no label/role -->
</div>
<h3>2.4.5 Multiple Ways (AA) - Broken Search</h3>
<p>A search feature is a common "second way" to find content. This search bar is purely visual and provides no functionality.</p>
<div style="margin: 10px 0;">
<input type="text" placeholder="Search site..." disabled>
<button disabled>Search</button>
</div>
<h3>2.4.8 Location (AAA) - Bad Breadcrumbs</h3>
<p>Visual indication of location without semantic markup (nav element or ordered list).</p>
<div>
Home > Structure > Violations
</div>
<h3>3.2.3 Consistent Navigation (AA)</h3>
<p>This "Secondary Menu" appears in a different order and location compared to other pages (simulated inconsistency).</p>
<ul>
<li><a href="contrast.php">Contrast</a></li>
<li><a href="index.php">Home</a></li> <!-- Different order -->
<li><a href="media.php">Media</a></li>
</ul>
<h3>3.2.4 Consistent Identification (AA)</h3>
<p>Using different icons/labels for the same function across the site.</p>
<!-- On index.php, we might use "Search", here we uses "Find" or a different icon for the same theoretical feature -->
<button>Find Page</button> (VS "Search" elsewhere)
<?php include 'includes/footer.php'; ?>