forked from rayhanranapro/HTML-CSS-JavaScript-100-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader2.html
More file actions
69 lines (61 loc) · 1.32 KB
/
header2.html
File metadata and controls
69 lines (61 loc) · 1.32 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
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Amazing Header</title>
<style>
body {
margin: 0;
font-family: 'Roboto', sans-serif;
background-color: #f1f1f1;
color: #333;
}
header {
background-color: #2ecc71;
color: #fff;
padding: 20px;
text-align: center;
}
nav {
background-color: #27ae60;
padding: 10px;
text-align: center;
}
nav a {
color: #fff;
text-decoration: none;
padding: 10px 20px;
margin: 0 10px;
border-radius: 5px;
transition: background-color 0.3s ease;
}
nav a:hover {
background-color: #1d8348;
}
section {
padding: 40px;
text-align: center;
}
h1, h2 {
color: #2c3e50;
}
</style>
</head>
<body>
<header>
<h1>My Modern Website:)</h1>
<p>Explore the future of innovation!</p>
</header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Contact</a>
</nav>
<section>
<h2>Main Content Goes Here</h2>
<p>This is where your main content will be placed alright:)</p>
</section>
</body>
</html>