HTMLify

about.html
Views: 231 | Author: demo
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
/* Reset some default styles */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
}

/* Style the navigation bar */
nav ul {
    list-style: none;
    background-color: #333;
    overflow: hidden;
}

nav li {
    float: left;
}

nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* Style the header */
header {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Style the main content */
main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    color: #333;
}

/* Style the footer */
footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px;
}
</style>
    <title>About</title>
</head>
<body>
    <nav>
        <ul>
            <li><a href="index.html">Home</a></li>
            <li><a href="about.html">About</a></li>
            <li><a href="contact.html">Contact</a></li>
        </ul>
    </nav>
    <header>
        <h1>About Me</h1>
        <p>Someone who create this page.</p>
    </header>
    <main>
        <section>
            <h2>My Story</h2>
            <p>This is the about page content. By the way it is just a demo site so you will only get this minimal stuff here.</p>
        </section>
    </main>
    <footer>
        <p>&copy; 2023 Demo site</p>
    </footer>
</body>
</html>

Comments