-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab-1.html
More file actions
55 lines (49 loc) · 1.31 KB
/
Lab-1.html
File metadata and controls
55 lines (49 loc) · 1.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Semantic HTML5 Example</title>
<style>
body { font-family: Arial, sans-serif; margin: 0; }
header, nav, main, footer { padding: 20px; }
header { background: #f8f9fa; }
nav { background: #e9ecef; }
main { background: #ffffff; min-height: 300px; }
footer { background: #dee2e6; text-align: center; }
article { margin-bottom: 20px; padding: 10px; border: 1px solid #ccc; }
section { margin-top: 20px; }
</style>
</head>
<body>
<header>
<h1>My Website</h1>
<p>Welcome to my semantic HTML5 example.</p>
</header>
<nav>
<a href="#">Home</a> |
<a href="#">About</a> |
<a href="#">Contact</a>
</nav>
<main>
<section>
<h2>Latest Articles</h2>
<article>
<h3>Article 1</h3>
<p>This is the content of the first article.</p>
</article>
<article>
<h3>Article 2</h3>
<p>This is the content of the second article.</p>
</article>
</section>
<section>
<h2>About This Site</h2>
<p>This section provides information about the website.</p>
</section>
</main>
<footer>
<p>© 2025 My Website. All rights reserved.</p>
</footer>
</body>
</html>