Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (58 loc) · 1.61 KB
/
Copy pathindex.html
File metadata and controls
62 lines (58 loc) · 1.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Single Page Website</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
text-align: center;
background: #f4f4f4;
}
header {
background: #333;
color: white;
padding: 20px;
font-size: 24px;
}
section {
padding: 50px;
background: white;
margin: 20px auto;
width: 80%;
border-radius: 8px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
button {
padding: 10px 20px;
background: #007BFF;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
border-radius: 5px;
}
button:hover {
background: #0056b3;
}
</style>
</head>
<body>
<header>Welcome to My Single Page Website</header>
<section>
<h2>About</h2>
<p>This is a simple single-page website built with HTML, CSS, and JavaScript.</p>
<button onclick="showMessage()">Click Me</button>
<p id="message" style="display: none; color: green; font-weight: bold;">Thanks for visiting!</p>
</section>
<script>
function showMessage() {
document.getElementById("message").style.display = "block";
}
</script>
</body>
</html>