-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
36 lines (28 loc) · 1.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>To-Do List</title>
</head>
<body>
<main class="todo-container">
<h1>To-Do List</h1>
<!--added an aria-live region to provide feedback to screen readers-->
<div role="status" aria-live="polite" id="live-polite" class="vissually-hidden">
<!-- anything added in this div will be spoken out when the screen reader is not currently speaking something (aria-live="polite")-->
</div>
<div class="input-container">
<!--changed the label here to reflect what the input is for-->
<input type="text" id="todo-input" class="todo-input" placeholder="Add a new task" aria-label="New task" aria-invalid="true">
<button id="add-task-btn" aria-describedby="todo-input">Add Task</button>
</div>
<ul id="todo-list" class="todo-list" role="list"></ul>
<!-- added a message for when the todo list is empty, we use CSS to hide either the list or the message
depending on state (can be done with JS if you prefer)-->
<p id="empty-msg">You have no tasks in your task list, add some.</p>
</main>
<script src="app.js"></script>
</body>
</html>