Cse 326 Projects
Cse 326 Projects
Cse 326 Projects
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<h1 id="title">Survey Form</h1>
<p id="description">This is a Student's Project </p>
</head>
<form id="survey-form">
<label for="name" id="name-label">
Enter your Name:
<input id="name" type="text" placeholder="Enter your name" required>
</label>
<br>
<label for="email" id="email-label">
Enter your Email:
<input id="email" type="email" placeholder="Enter your email" required>
</label>
<br>
<label for="number" id="number-label">
Enter your Number:
<input id="number" type="number" placeholder="Enter a number" min="5"
max="10" required>
</label>
<label for="dropdown">Select an option:</label>
<select id="dropdown">
<option value="option1">Option 1</option>
<option value="option2">Option 2</option>
<label>
<label for="comments">Additional Comments:</label>
<textarea id="comments" rows="4" cols="50" placeholder="Enter your
comments"></textarea>
PROJECT-2
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Tribute Page</title>
</head>
<body>
<main id="main">
<h1 id="title">Dr. Norman Borlaug</h1>
<div id="img-div">
<img id="image" src="norman-borlaug.jpg" alt="Dr. Norman Borlaug">
<div id="img-caption">Dr. Norman Borlaug</div>
</div>
<div id="tribute-info">
<p>
Dr. Norman Borlaug was an American agronomist and humanitarian who
led initiatives to combat world hunger.
</p>
</div>
<a id="tribute-link" href="https://en.wikipedia.org/wiki/Norman_Borlaug"
target="_blank">Learn more</a>
</main>
</body>
</html>
CSS:
/* Reset some default styles */
body, figure, div {
margin: 0;
padding: 0;
}
/* Title Styles */
#title {
font-size: 24px;
margin-top: 20px;
}
/* Image Styles */
#img-div {
margin-top: 20px;
}
#image {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
#img-caption {
font-size: 16px;
margin-top: 10px;
}
#tribute-link:hover {
text-decoration: underline;
}
PROJECT-3
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Technical Documentation</title>
</head>
<body>
<!-- Navbar -->
<nav id="navbar">
<header>Technical Documentation</header>
<a class="nav-link" href="#JavaScript_and_Java">JavaScript and Java</a>
<a class="nav-link" href="#HTML">HTML</a>
<a class="nav-link" href="#CSS">CSS</a>
<a class="nav-link" href="#Responsive_Design">Responsive Design</a>
<a class="nav-link" href="#Media_Queries">Media Queries</a>
</nav>
CSS:
body, ul {
margin: 0;
padding: 0;
}
/* Navbar Styles */
#navbar {
background-color: #333;
color: #fff;
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 250px;
overflow-y: scroll;
padding: 20px;
}
#navbar header {
font-size: 24px;
margin-bottom: 20px;
}
.nav-link {
display: block;
text-decoration: none;
color: #fff;
margin-bottom: 10px;
font-size: 18px;
}
.nav-link:hover {
text-decoration: underline;
}
.main-section {
margin-top: 20px;
padding: 20px;
background-color: #f5f5f5;
}
.main-section header {
font-size: 24px;
}
#main-doc {
margin-left: 0;
}
}
PROJECT-4:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Product Landing Page</title>
</head>
<body>
<!-- Header Section -->
<header id="header">
<img id="header-img" src="your-logo.png" alt="Company Logo">
<nav id="nav-bar">
<a class="nav-link" href="#features">Features</a>
<a class="nav-link" href="#pricing">Pricing</a>
<a class="nav-link" href="#contact">Contact</a>
</nav>
</header>
<section id="pricing">
<!-- Add content for Pricing section -->
</section>
<section id="contact">
<!-- Add content for Contact section -->
</section>
</body>
</html>
CSS:
body, ul {
margin: 0;
padding: 0;
}
/* Header Styles */
#header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
#header-img {
width: 100px;
height: 100px;
margin: 20px;
}
#nav-bar {
display: flex;
justify-content: center;
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
z-index: 100;
}
.nav-link {
text-decoration: none;
color: #fff;
margin: 0 20px;
font-size: 18px;
}
/* Video Styles */
#video {
text-align: center;
}
/* Form Styles */
#form {
background-color: #f5f5f5;
text-align: center;
padding: 20px;
}
h2 {
font-size: 24px;
}
#email-form {
margin: 20px;
}
#email {
padding: 10px;
width: 100%;
margin-bottom: 10px;
}
#submit {
background-color: #007acc;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
}
#submit:hover {
background-color: #005fa3;
}
.nav-link {
margin: 10px 0;
}
}
PROJECT-5
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Your Portfolio</title>
</head>
<body>
<!-- Navbar -->
<nav id="navbar">
<ul>
<li><a class="nav-link" href="#welcome-section">Home</a></li>
<li><a class="nav-link" href="#projects">Projects</a></li>
<li><a class="nav-link" href="#profile-link">Profile</a></li>
</ul>
</nav>
CSS:
body, ul {
margin: 0;
padding: 0;
}
/* Navbar Styles */
#navbar {
background-color: #333;
color: #fff;
position: fixed;
top: 0;
left: 0;
width: 100%;
}
ul {
list-style-type: none;
display: flex;
justify-content: center;
padding: 10px;
}
.nav-link {
text-decoration: none;
color: #fff;
margin: 0 20px;
font-size: 18px;
}
h1 {
font-size: 36px;
}
.project-tile {
background-color: #f5f5f5;
padding: 20px;
margin: 20px;
border-radius: 5px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.project-tile h2 {
font-size: 24px;
}
#profile-link:hover {
text-decoration: underline;
}
.nav-link {
margin: 10px 0;
}
}