-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (59 loc) · 2.42 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>WCAG-MENU</title>
<link rel="stylesheet" href="./css/menu.css">
</head>
<body>
<nav aria-label="Основное меню сайта">
<ul class="menu" role="menubar" data-role="menu">
<li>
<a href="#link-1" role="menuitem">Ссылка 1</a>
</li>
<li>
<a href="#link-2" role="menuitem">Ссылка 2</a>
</li>
<li>
<span aria-haspopup="true" aria-expanded="false" role="menuitem" aria-controls="submenu-1" tabindex="0">Пункт с выпадающим меню</span>
<ul role="menu" id="submenu-1" aria-hidden="true" style="display: none">
<li>
<a href="#1" role="menuitem">Подменю 1</a>
</li>
<li>
<a href="#2" role="menuitem">Подменю 2</a>
</li>
<li>
<a href="#3" role="menuitem">Подменю 3</a>
</li>
</ul>
</li>
<li>
<span aria-haspopup="true" aria-expanded="false" role="menuitem" aria-controls="submenu-2" tabindex="0">Пункт с выпадающим меню</span>
<ul role="menu" id="submenu-2" aria-hidden="true" style="display: none">
<li>
<a href="#1" role="menuitem">Подменю 1</a>
</li>
<li>
<a href="#2" role="menuitem">Подменю 2</a>
</li>
<li>
<a href="#3" role="menuitem">Подменю 3</a>
</li>
</ul>
</li>
<li>
<a href="#link-5" role="menuitem">Ссылка 5</a>
</li>
</ul>
</nav>
<div style="margin-top: 100px;">
<p>Ссылки:</p>
<p><a href="./css/menu.css" target="_blank">menu.css</a></p>
<p><a href="./js/menu.js" target="_blank">menu.js</a></p>
</div>
<script src="./js/menu.js"></script>
</body>
</html>