HTMLify

index.html
Views: 203 | Author: demo
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo Site</title>
</head>
<body>
    <header>
        <h1>This is a Demo Site</h1>
    </header>

    <nav>
        <ul>
            <li><a href="/">HTMLify home</a></li>
            <li><a href="#section1">Section 1</a></li>
            <li><a href="#section2">Section 2</a></li>
            <li><a href="#section3">Section 3</a></li>
            <li><a href="/demo/index.html">Index</a></li>
        </ul>
    </nav>

    <main>
        <section id="section1" class="card">
            <h2>Card 1</h2>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
        </section>

        <section id="section2" class="card">
            <h2>Card 2</h2>
            <p>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
        </section>

        <section id="section3" class="card">
            <h2>Card 3</h2>
            <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
        </section>
    </main>

    <footer>
        <p>Thank you for visiting our Demo Site!</p>
    </footer>
</body>
</html>
<style>
/* Reset some default styles */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
}

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

/* 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 cards in the main content */
.card {
    width: 300px;
    margin: 20px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    float: left;
}

/* Style the footer */
footer {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px;
    clear: both;
}
</style>

Comments