Ict Lab 5 Final
Ict Lab 5 Final
Name
Ali Haider
Class BEE-2B
Lab Assessment
Objective:
The objective of this lab will be to learn about HTML and create web pages.
Lab Activities:
Home page Development static pages (using Only HTML) of an online Book store. The website should
consist the following pages.
Source code 1:
<!-- Start of HTML document -->
• <html>
• <head>
• <frameset rows="20%,*">
• <h3 align="center">
• <a href="reg.html"><br><br><font color="black"><italic>REGISTRATION
• FORM</italic></font><br><br></a>
• <br><br><a href="user profile.html"><font color="black"><italic>USER
• PROFILE</italic></font><br><br></a>
• <br><br><a href="user login.html"><font color="black"><italic>USER
• LOGIN</italic></font><br><br></a>
• <br><br><a href="book catalog.html"><font color="black"><italic>BOOKS
• CATALOG</italic></font><br><br></a>
• <br><br><a href="confim.html"><font color="black"><italic>BOOKS
• CART</italic></font><br><br></a>
• <br><br><a href="payment.html"><font
• color="black"><italic>PAYMENT</italic></font></a><br>
• </h3>
• </body>
• </html>
Picture:
• <html>
• <head>
• <form actions="http://localhost:8080//servlet-examples//KiranUserProfile">
• <pre class="reg">
Picture:
Lab Task 1:
Create your own website for Hosptal Management system.The site may includes the following pages.
• Doctor Login
• User/patient Login
• Appointment Resevation
• Patient History
• Doctor profile
• <html>
• <head>
• <title> AH HOSPITAL</title>
• </head>
• <style>
•
• body {
• font-family: Arial, sans-serif;
• margin: 0;
• padding: 0;
• }
• header, footer {
• background-color: #333;
• color: #fff;
• text-align: center;
• padding: 10px 0;
• }
• nav {
• background-color: #f4f4f4;
• padding: 10px;
• text-align: center;
• }
• nav a {
• text-decoration: none;
• color: #333;
• padding: 10px 20px;
• }
• nav a:hover {
• background-color: #ddd;
• color: #333;
• }
• section {
• padding: 20px;
• text-align: center;
• }
• </style>
• </head>
• <body bgcolor="pink">>
• <header>
• <h1>Hospital Management System</h1>
• </header>
• <nav>
• <a href="#doctorlogin">Doctor Login</a>
• <a href="#user-login">User/Patient Login</a>
• <a href="#appointment-reservation">Appointment Reservation</a>
• <a href="#patient-history">Patient History</a>
• <a href="#doctor-profile">Doctor Profile</a>
• </nav>
• <img src="hospital.jpeg" alt="Hospital Image" width="1300" height="400">
• <footer>
• <p>© 2024 Hospital Management System</p>
• </footer>
• </BODY>
• </HTML>
Picture:
Doctor Login:
• <html>
• <head>
• <style>
• body {
• display: flex;
• justify-content: center;
• align-items: center;
• height: 100vh;
• font-family: Arial, sans-serif;
• }
• form {
• width: 300px;
• padding: 20px;
• border: 1px solid #ddd;
• border-radius: 5px;
• box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.1);
• }
• h2 {
• text-align: center;
• margin-bottom: 20px;
• }
• label {
• display: block;
• margin-bottom: 10px;
• }
• input[type="text"], input[type="password"] {
• margin-bottom: 10px;
• width: 100%;
• padding: 8px;
• border: 1px solid #ddd;
• border-radius: 5px;
• box-sizing: border-box;
• }
• input[type="submit"] {
• width: 100%;
• padding: 10px;
• background-color: #007bff;
• color: white;
• border: none;
• border-radius: 5px;
• cursor: pointer;
• }
• input[type="submit"]:hover {
• background-color: #0069d9;
• }
• </style>
• </head>
• <body>
• <form method="post" action="login.php">
• <h2>Doctor Login</h2>
• <label for="username">Username:</label>
• <input type="text" id="username" name="username" required>
• <label for="password">Password:</label>
• <input type="password" id="password" name="password" required>
• <input type="submit" value="Login">
• </form>
• </body>
• </html>
Picture:
User Login:
• <html>
• <head>
• <style>
• body {
• display: flex;
• justify-content: center;
• align-items: center;
• height: 100vh;
• font-family: Arial, sans-serif;
• }
• form {
• width: 300px;
• padding: 20px;
• border: 1px solid #ddd;
• border-radius: 5px;
• box-shadow: 0px 0px 10px 1px rgba(0,0,0,0.1);
• }
• h2 {
• text-align: center;
• margin-bottom: 20px;
• }
• label {
• display: block;
• margin-bottom: 10px;
• }
• input[type="text"], input[type="password"] {
• margin-bottom: 10px;
• width: 100%;
• padding: 8px;
• border: 1px solid #ddd;
• border-radius: 5px;
• box-sizing: border-box;
• }
• input[type="submit"] {
• width: 100%;
• padding: 10px;
• background-color: #007bff;
• color: white;
• border: none;
• border-radius: 5px;
• cursor: pointer;
• }
• input[type="submit"]:hover {
• background-color: #0069d9;
• }
• </style>
• </head>
• <body>
• <form method="post" action="login.php">
• <h2>User Login</h2>
• <label for="username">Username:</label>
• <input type="text" id="username" name="username" required>
• <label for="password">Password:</label>
• <input type="password" id="password" name="password" required>
• <input type="submit" value="Login">
• </form>
• </body>
• </html>
Picture:
Appointment Resevation:
• <html>
• <head>
• <title>
• Appointment Reservation
• </title>
• <style>
• h1{
• background-color: pink;
• font-style: italic;
• text-align: center;
• }
• input[type="text"], input[type="email"], input[type="number"]{
• width: 300px;
• height: 30px;
• border-radius: 5px;
• border: 1px solid #ccc;
• margin-bottom: 10px;
• }
• input[type="submit"]{
• width: 300px;
• height: 35px;
• background-color: #f06;
• color: white;
• border-radius: 5px;
• font-size: 16px;
• cursor: pointer;
• }
• </style>
• </head>
• <body>
• <h1> Appointment Reservation</h1>
• <form>
• First Name <input type="text" name="form_firstname" required><br><br>
• Last Name <input type="text" name="form_lastname" required><br><br>
• Contact Number <input type="number" name="form_contactnumber" required><br><br>
• Email Address <input type="email" name="form_emailaddress" required><br><br>
• <input type="submit" value="Submit">
• </form>
• </body>
• </html>
Picture:
Patient History:
• <html>
• <head>
• <style>
• table {
• width: 100%;
• border-collapse: collapse;
• }
• th, td {
• border: 1px solid #ddd;
• padding: 8px;
• text-align: left;
• }
• th {
• background-color: #4CAF50;
• color: white;
• }
• tr:nth-child(even) {
• background-color: #f2f2f2;
• }
• h2 {
• text-align: center;
• margin-bottom: 20px;
• }
• </style>
• </head>
• <body>
• <h2>Patient History</h2>
• <table>
• <tr>
• <th>NAME</th>
• <th>GENDER</th>
• <th>AGE</th>
• <th>PROBLEM</th>
• <th>CONTACT</th>
• <th>MEDICAL RECORD</th>
• </tr>
• <tr>
• <td>John Doe</td>
• <td>Male</td>
• <td>35</td>
• <td>Headache</td>
• <td>555-1234</td>
• <td>
• <button>View Record</button>
• </td>
• </tr>
• <tr>
• <td>Jane Smith</td>
• <td>Female</td>
• <td>42</td>
• <td>Fever</td>
• <td>555-5678</td>
• <td>
• <button>View Record</button>
• </td>
• </tr>
• <tr>
• <td>Bob Johnson</td>
• <td>Male</td>
• <td>28</td>
• <td>Flu</td>
• <td>555-9012</td>
• <td>
• <button>View Record</button>
• </td>
• </tr>
• </table>
• </body>
• </html>
Picture:
Doctor profile:
• <html>
• <head>
• <style>
• table {
• width: 100%;
• border-collapse: collapse;
• }
• th, td {
• border: 1px solid #ddd;
• padding: 8px;
• text-align: left;
• }
• th {
• background-color: #4CAF50;
• color: white;
• }
• tr:nth-child(even) {
• background-color: #f2f2f2;
• }
• h2 {
• text-align: center;
• margin-bottom: 20px;
• }
• </style>
• </head>
• <body>
• <h2>Doctor Specialization</h2>
• <table>
• <tr>
• <th>NAME</th>
• <th>SPECIALIZATION</th>
• <th>EXPERIENCE</th>
• <th>CONTACT</th>
• </tr>
• <tr>
• <td>John Doe</td>
• <td>Cardiology</td>
• <td>15 years</td>
• <td>555-1234</td>
• </tr>
• <tr>
• <td>Jane Smith</td>
• <td>Neurology</td>
• <td>10 years</td>
• <td>555-5678</td>
• </tr>
• <tr>
• <td>Bob Johnson</td>
• <td>Orthopedics</td>
• <td>20 years</td>
• <td>555-9012</td>
• </tr>
• </table>
• </body>
• </html>
Picture:
Conclusion:
In conclusion, I learned that HTML is the fundamental language for building web
pages, providing structure and organization to content. Mastering HTML empowers
individuals to create captivating online experiences and serves as the cornerstone
of web development knowledge.