Skip to content

Commit e4d7034

Browse files
init app [project90]
1 parent b3f8a7a commit e4d7034

File tree

4 files changed

+89
-0
lines changed

4 files changed

+89
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Your Accessible Web App</title>
7+
<link rel="stylesheet" href="styles.css" />
8+
</head>
9+
<body>
10+
<header>
11+
<h1>Your Accessible Web App</h1>
12+
</header>
13+
14+
<nav>
15+
<ul>
16+
<li><a href="#home">Home</a></li>
17+
<li><a href="#about">About</a></li>
18+
<li><a href="#contact">Contact</a></li>
19+
</ul>
20+
</nav>
21+
22+
<main>
23+
<!-- Your main content goes here -->
24+
</main>
25+
26+
<footer>
27+
<p>&copy; 2024 Your Company. All rights reserved.</p>
28+
</footer>
29+
30+
<script src="script.js"></script>
31+
</body>
32+
</html>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Accessibility Considerations:
2+
3+
- Use semantic HTML elements (<nav>, <header>, <main>, <footer>) for better screen reader support.
4+
- Ensure all interactive elements have focus styles.
5+
- Implement ARIA roles and attributes as needed.
6+
- Test your web app using accessibility tools like Axe or Lighthouse.
7+
- Provide alternative text for images (alt attribute).
8+
- Ensure proper color contrast for text.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// You can add JavaScript functionality here as needed
2+
// For example, handling responsive navigation or other dynamic behavior
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
body {
2+
font-family: "Arial", sans-serif;
3+
margin: 0;
4+
padding: 0;
5+
}
6+
7+
header,
8+
nav,
9+
main,
10+
footer {
11+
margin: 20px;
12+
}
13+
14+
nav ul {
15+
list-style: none;
16+
padding: 0;
17+
margin: 0;
18+
}
19+
20+
nav li {
21+
display: inline-block;
22+
margin-right: 20px;
23+
}
24+
25+
a {
26+
text-decoration: none;
27+
color: #333;
28+
}
29+
30+
a:hover {
31+
color: #0066cc;
32+
}
33+
34+
@media only screen and (max-width: 600px) {
35+
nav {
36+
display: block;
37+
}
38+
39+
nav ul {
40+
text-align: center;
41+
}
42+
43+
nav li {
44+
display: block;
45+
margin: 10px 0;
46+
}
47+
}

0 commit comments

Comments
 (0)