-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e735cc
commit 379a7ee
Showing
1 changed file
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>My Basic Website</title> | ||
<style> | ||
body { | ||
font-family: Arial, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
background-color: #f4f4f4; | ||
} | ||
header { | ||
background-color: #333; | ||
color: #fff; | ||
padding: 1em 0; | ||
text-align: center; | ||
} | ||
nav { | ||
margin: 0; | ||
padding: 0; | ||
background-color: #444; | ||
} | ||
nav ul { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
overflow: hidden; | ||
} | ||
nav ul li { | ||
float: left; | ||
} | ||
nav ul li a { | ||
display: block; | ||
color: white; | ||
text-align: center; | ||
padding: 14px 16px; | ||
text-decoration: none; | ||
} | ||
nav ul li a:hover { | ||
background-color: #111; | ||
} | ||
main { | ||
padding: 1em; | ||
} | ||
footer { | ||
background-color: #333; | ||
color: white; | ||
text-align: center; | ||
padding: 1em 0; | ||
position: absolute; | ||
width: 100%; | ||
bottom: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Welcome to My Basic Website</h1> | ||
</header> | ||
<nav> | ||
<ul> | ||
<li><a href="#home">Home</a></li> | ||
<li><a href="#about">About</a></li> | ||
<li><a href="#contact">Contact</a></li> | ||
</ul> | ||
</nav> | ||
<main> | ||
<section id="home"> | ||
<h2>Home</h2> | ||
<p>This is the home section of the website.</p> | ||
</section> | ||
<section id="about"> | ||
<h2>About</h2> | ||
<p>This section contains information about the website.</p> | ||
</section> | ||
<section id="contact"> | ||
<h2>Contact</h2> | ||
<p>This section contains contact information.</p> | ||
</section> | ||
</main> | ||
<footer> | ||
<p>© 2024 My Basic Website</p> | ||
</footer> | ||
</body> | ||
</html> |