0% found this document useful (0 votes)
6 views11 pages

Web Development Mid Test

The document contains HTML and CSS code for a web development project, including a home page, contact page, about page, login form, and a results table. Each page features a consistent layout with headers, footers, and navigation links. The CSS styles provide a cohesive design across the different pages.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views11 pages

Web Development Mid Test

The document contains HTML and CSS code for a web development project, including a home page, contact page, about page, login form, and a results table. Each page features a consistent layout with headers, footers, and navigation links. The CSS styles provide a cohesive design across the different pages.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Web Development (CIT-303)

Submitted by : M. Rafay 2021-427


Name/Roll No M. Rohan 2021-436
M. Anas 2021-431
Fakir Latif 2021-450

Home Page

Html Code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home Page</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Welcome to Home Page</h1>
<nav>
<ul>
<li><a href="login.html">Login</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="table.html">Table</a></li>

</ul>
</nav>
</header>
<footer>

<p>&copy; 2024. All rights reserved.</p>


</footer>
</body>
</html>

Contact Page
Html Code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Page</title>
<link rel="stylesheet" href="style.css">

</head>
<body>
<header>
<h1>Contact Us</h1>
</header>

<h1>Contact Us</h1>
</header>
<main>
<section>
<p>Have questions or want to get in touch? Fill out the form
below:</p>
<form action="#" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>

<label for="email">Email:</label>
<input type="email" id="email" name="email" required>

<label for="message">Message:</label>
<textarea id="message" name="message" rows="4"
required></textarea>

<button type="submit">Submit</button>
</form>
</section>
</main>
<footer>
<p>&copy; 2024 Contact Page.</p>
</footer>
</body>
</html>

About Page

Html Code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Form</title>
</head>

<body>

<header>
<h1>About Us</h1>

<link rel="stylesheet" href="style.css">


<link rel="stylesheet" href="home.html">

</header>

<p> Our team is well experiend and looking forward to guide you. </p>

<footer>
<p>&copy; 2024 About Page.</p>
</footer>

</body>
</html>

Css Code

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background-color: #536366;
color: white;
text-align: center;
padding: 1em;
}
main {
padding: 2em;
}
footer {
background-color: #536366;
color: rgb(255, 255, 255);
text-align: center;
padding: 1em;
position: fixed;
bottom: 0;
width: 100%;
}

Login Form

Code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Form</title>

<style>

body {
font-family: "Open Sans", sans-serif;
background-color: #78b471;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

form {
max-width: 300px;
}

input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: 1px solid #ccc;
border-radius: .1875rem;
box-sizing: border-box;
display: block;
font-size: .875rem;
margin-bottom: 1rem;
padding: .275rem;
width: 100%;
}

input[type="checkbox"] {
-webkit-appearance: checkbox;
-moz-appearance: checkbox;
appearance: checkbox;
display: inline-block;
width: auto;
}

input[type="password"] {
margin-bottom: .5rem;
}

input[type="submit"] {
background-color: #015294;
border: none;
color: #fff;
font-size: 1rem;
padding: .5rem 1rem;
}

label {
color: #666;
font-size: .875rem;
}
</style>

</head>

<body>

<form>
<h2>Login</h2>
<label for="email">Email</label>
<input type="email" id="email">
<label for="pass">Password</label>
<input type="password">
<input type="checkbox" value="lsRememberMe" id="rememberMe">
<label for="rememberMe">Remember me</label>
<input type="submit" value="Login" onclick="lsRememberMe()">
</form>

</body>
Table

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
table {
width: 50%;
border-collapse: collapse;
margin: 20px 0;
}

th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
</style>
<title>Result</title>
</head>
<body>
<h2>Results</h2>
<table>
<thead>
<tr>
<th>Student Name</th>
<th>CIT-324</th>
<th>CIT-352</th>
<th>CIT-333</th>
<th>GEN-303</th>
<th>MGM-331</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>Rafay</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Rohan</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Anas</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Fakhir</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>St. 5</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>

Developer / Designer : M. Rafay

You might also like