Coder Social home page Coder Social logo

simplewebserver's Introduction

EX01 Developing a Simple Webserver

Name: Neethiventhan

Reference No: 212223100038

Department: CSE(Cyber Security)

Date: 30/03/2024

AIM:

To develop a simple webserver to serve html pages.

DESIGN STEPS:

Step 1:

HTML content creation.

Step 2:

Design of webserver workflow.

Step 3:

Implementation using Python code.

Step 4:

Serving the HTML pages.

Step 5:

Testing the webserver.

PROGRAM:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My page</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
    <style>
        /* Basic styling for the page */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-image:url('SSS.jpeg');
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        /* Header styles */
        .header {
            background-color: #333;
            color: #fff;
            padding: 20px;
            text-align: center;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            text-decoration: none;
            color: #fff;
        }
        .nav-items {
            margin-top: 10px;
        }
        .nav-items a {
            margin-right: 20px;
            text-decoration: none;
            color: #fff;
        }
        /* Main content styles */
        .intro {
            text-align: center;
            margin-top: 40px;
        }
        .intro h1 {
            font-size: 36px;
        }
        .intro p {
            font-size: 18px;
            color: #555;
        }
        .achievements {
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
        }
        .work {
            text-align: center;
           }
        .work i {
            font-size: 24px;
            color: #333;
        }
        .work-heading {
            font-size: 18px;
            font-weight: bold;
            margin-top: 10px;
        }
        .work-text {
            font-size: 16px;
            color: #777;
        }
        /* Footer styles */
        .footer {
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 20px;
        }
        .border{

            border-radius: 25%;
            border-left: 25%;
            border-right: 25%;
        }
       </style>
</head>
<body>
    <div class="container">
        <header class="header">
            <a href="#" class="logo">my page</a>
            <nav class="nav-items">
                <a href="#" class="bi bi-house">Home</a>
                <a href="#" class="bi bi-file-earmark-person">About</a>
                <a href="#" class="bi bi-person-rolodex">Contact</a>
            </nav>
        </header>
        <main>
            <div class="intro">
                <h1 style="color: red;">A Web Developer</h1>
            </div>
            <div>
            </div>
            <div class="achievements">
               <div class="work">
                    <i class="fas fa-atom"></i>
                    <p class="work-heading" style="color: white;">Projects</p>
                    <p class="work-text" style="color:white;">I have worked on many projects.</p>
                </div>

            </div>
        </main>
<div>
    <div class="container">
        <div class="background-image">
          <!-- Login Form -->
          <div class="login-form">
              <h2>Login:</h2>
              <form action="your_login_script.php" method="POST">
                  <input type="text" name="username" class="border" style="color: red;"placeholder="Username" required><br>
                  <input type="password" style="color: red;" name="password"class="bi bi-person border" placeholder="Password" required><br>
                  <button type="submit" style="color:green" class="bi bi-box-arrow-in-left border">Login</button>
              </form>
          </div>
      </div>
</div>
<div>
    <h6 style="color: white;">
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias obcaecati beatae delectus nisi error est animi, voluptas ducimus sunt inventore officiis dolorem esse maxime doloribus aliquam, recusandae facilis itaque sit atque architecto quae sint officia. Neque placeat et debitis possimus suscipit odio non, aut laboriosam saepe, a vitae ea. Asperiores nemo atque aspernatur, cupiditate quam possimus voluptatibus? Corporis quidem, saepe, culpa minima ad dolor accusantium placeat quos voluptatem necessitatibus obcaecati vel ipsa! Blanditiis a excepturi atque exercitationem cum sed delectus ratione dolor qui similique. Fugit atque consequuntur autem blanditiis rerum excepturi cum velit vitae esse inventore? Sit deleniti amet excepturi, reprehenderit nemo eos architecto aperiam ab assumenda sint. Dolores porro doloribus eos doloremque eveniet velit incidunt repellendus eaque ea eum maxime exercitationem ratione officiis mollitia error impedit dignissimos, aperiam libero aliquam quod sed! Repudiandae perferendis amet, ducimus, blanditiis est modi perspiciatis architecto nostrum ratione aut velit necessitatibus iste magni consequuntur.
    </h6>
</div>          
        <footer class="footer">
            thank you for visiting...
        </footer>
    </div>
</body>
</html>

OUTPUT:

WhatsApp Image 2024-03-30 at 15 37 04_a13eea50

RESULT:

The program for implementing simple webserver is executed successfully.

simplewebserver's People

Contributors

selvasachein avatar neethiventhan123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.