0% found this document useful (0 votes)
24 views44 pages

Gurvinder Kaur

The document is a practical file for a course on Internet Technology and Web Page Design, submitted by Gurvinder Kaur. It includes various HTML projects such as creating a personal web page, a login form, styled tables, lists, a contact page, a product display page, and a resume page. Each project is accompanied by HTML code and styling details.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views44 pages

Gurvinder Kaur

The document is a practical file for a course on Internet Technology and Web Page Design, submitted by Gurvinder Kaur. It includes various HTML projects such as creating a personal web page, a login form, styled tables, lists, a contact page, a product display page, and a resume page. Each project is accompanied by HTML code and styling details.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 44

Practical file

On
INTERNET TECHNOLOGY AND WEB PAGE
DESIGN
Session 2025-2026

Himalayan
Group of Professional Institutions

Submitted By: Submitte to:


Name: Gurvinder Kaur Palash Sharma
Roll No: 6231430012
Semester: 4th
Course: BCA

Department of Computer Science


Himalayan Institute of Computer Science, Kala Amb, H.P(173030)
Q1. Create a personal web page?

<!DOCTYPE html>

<html lang="en">

<head>

<title>My Personal Page</title>

<style>

body {

background-color: rgb(113, 175, 193);

font-family:'Times New Roman', Times, serif;

text-align: center;

margin: 40px;

img {

border-radius: 50%;

width: 120px;

height: 130px;

object-fit: cover;

</style>

</head>

<body>

<h1> Gurvinder Kaur </h1>

<img src="photo.png.jpeg" alt="Profile Picture">

<p>

Hello! I'm Gurvinder Kaur. I'm a student

</p>

</body>
</html>

Output:-
Q2. Design a simple login form?

<!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>

/* Basic Reset */

*{

margin: 0;

padding: 0;

box-sizing: border-box;

body {

font-family: Arial, sans-serif;

display: flex;

justify-content: center;

align-items: center;

height: 100vh;

background-image:
url(https://t4.ftcdn.net/jpg/06/91/05/19/360_F_691051962_GFhQPOAXABmf7l706q89b2PF
h6FnB1kI.jpg);

background-size: cover;

.login-container {

background-color: transparent;
padding: 30px;

border-radius: 8px;

box-shadow: 0 4px 8px rgb(216, 212, 212);

width: 300px;

box-sizing: border-box;

h2 {

text-align: center;

margin-bottom: 20px;

font-size: 24px;

color: #cfc4c4;

.input-field {

width: 100%;

padding: 12px;

margin: 10px 0;

border: 1px solid #ccc;

border-radius: 4px;

font-size: 16px;

transition: border-color 0.3s ease;

.input-field:focus {

border-color: #db93d2;

outline: none;

}
.btn {

width: 100%;

padding: 12px;

background-color: #9d959c;

color: white;

border: none;

border-radius: 4px;

font-size: 16px;

cursor: pointer;

transition: background-color 0.3s ease;

.btn:hover {

background-color: #7a777a;

.form-footer {

text-align: center;

margin-top: 10px;

color: #ccc;

.form-footer a {

color: #d3d2d3;

text-decoration: none;

font-size: 14px;

}
.form-footer a:hover {

text-decoration: underline;

</style>

</head>

<body>

<div class="login-container">

<h2>Login</h2>

<form action="#" method="POST">

<input type="text" class="input-field" placeholder="Username" required>

<input type="password" class="input-field" placeholder="Password" required>

<button type="submit" class="btn">Login</button>

</form>

<div class="form-footer">

<p>Don't have an account? <a href="#">Sign up</a></p>

</div>

</div>

</body>

</html>

Output:-
Q.3 Create a styled table?

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>table layout of webpage</title>
<style>
body {
font-family: sans-serif;
margin: 0;
padding: 0;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 0;
text-align: left;
}
#header {
background-color:#0a0404;
color: white;
padding: 20px;
text-align: center;
}
#main-content {
padding: 20px;
}
#footer {
background-color: #f0f0f0;
padding: 10px;
text-align: center;
border-top: 1px solid #ccc;
}
#sidebar {
width: 200px;
background-color: rgba(16, 26, 26, 0.586);
padding: 10px;
vertical-align: top;
}
#content {
vertical-align: top;
background-color: aqua;
}
</style>
</head>
<body>
<table>
<tr>
<td colspan="2" id="header">
<h1>table webpage</h1>
</td>
</tr>
<tr>
<td id="sidebar">
<h2>link to webpages</h2>
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
</ul>
</td>
<td id="content">
<div id="content">
<h2>Content</h2>
<p>content of webpage goes here the text and images
also goes here</p>
<p>other content lies here</p>
</div>
</td>
</tr>
<tr>
<td colspan="2" id="footer">
<p>&copy; thank you for visiting my webpage </p>
</td>
</tr>
</table>
</body>
</html>

Output:-
Q4.Build an ordered and unordered list page?

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>List Page</title>
<style>
body {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida
Grande', 'Lucida Sans', Arial, sans-serif;
margin: 20px;
}
h2 {
color: #333;
margin-bottom: 10px;
}
ol {
list-style-type: decimal;
color: #df5061;
padding-left: 20px;
}
ul {
list-style-type: disc;
color: #5f46db;
padding-left: 20px;
}
li {
margin-bottom: 5px;
font-size: 16px;
}
ol li:nth-child(even) {
color: #3f38c8;
}
ul li:nth-child(odd) {
color: #d43d8b;
}
</style>
</head>
<body>
<h2>Ordered List</h2>
<ol>
<li>First Item</li>
<li>Second Item</li>
<li>Third Item</li>
<li>Fourth Item</li>
<li>Fifth Item</li>
</ol>
<h2>Unordered List</h2>
<ul>
<li>Apple</li>
<li>Banana</li>
<li>Cherry</li>
<li>Date</li>
<li>Elderberry</li>
</ul>
</body>
</html>

Output:-
Q5. Create a basic contact us page?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Contact Us</title>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
margin: 20px;
}
.contact-form {
width: 300px;
margin: 0 auto;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 8px;
box-sizing: border-box;
border: 1px solid #c9a4a4;
border-radius: 3px;
}
.form-group textarea {
resize: vertical;
}
.submit-button {
width: 100%;
padding: 10px;
background-color: #226079;
color: white;
border: none;
border-radius: 3px;
cursor: pointer;
}
.submit-button:hover {
background-color: #4b45a0;
}
h2 {
text-align: center;
}
</style>
</head>
<body>
<h2>Contact Us</h2>
<div class="contact-form">
<form>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="message">Message:</label>
<textarea name="message" id="message" rows="4"
required></textarea>
</div>
<button type="submit" class="submit-button">Submit</button>
</form>
</div>
</body>
</html>l

Output:-
Q6. Design a simple webpage layout using tables?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Simple Table Web Page</title>
<link rel="stylesheet" href="styles.css">
</head>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}

.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
text-align: center;
margin-bottom: 20px;
}

h1 {
margin: 0;
}

main {
margin-bottom: 20px;
}

table {
width: 100%;
border-collapse: collapse;
}

th, td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

th {
background-color: #4CAF50;
color: white;
}

tr:nth-child(even) {
background-color: #f2f2f2;
}

footer {
text-align: center;
padding: 10px;
background-color: #4CAF50;
color: white;
position: relative;
bottom: 0;
width: 100%;
}
</style>
<body>
<div class="container">
<header>
<h1>Simple Web Page with Table</h1>
</header>

<main>
<h2>Sample Data Table</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
<th>City</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>30</td>
<td>New York</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>25</td>
<td>Los Angeles</td>
</tr>
<tr>
<td>Mike Johnson</td>
<td>35</td>
<td>Chicago</td>
</tr>
</tbody>
</table>
</main>

<footer>
<p>&copy; 2023 Simple Web Page</p>
</footer>
</div>
</body>
</html>

Output:-
Q7. Design a product display page?

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Product Display</title>

<style>

body {

font-family: sans-serif;

background-color: #f4f4f4;

.container {

width: 80%;

margin: 20px auto;

display: grid;

grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

gap: 20px;

.product {

background-color: white;

border-radius: 8px;

box-shadow: 0 2px 4px rgba(red, green, blue, alpha);

padding: 20px;

text-align: center;

.product img {
max-width: 100%;

height: auto;

border-radius: 4px;

margin-bottom: 10px;

.product h2 {

margin: 10px 0;

font-size: 19px;

.product .price {

color: #e44d26;

font-weight: bold;

margin-bottom: 10px;

.product p {

font-size: 14px;

color: #666;

line-height: 1.5;

.product button {

background-color: rgb(76, 240, 232);

border: none;

color: white;

padding: 10px 20px;

text-align: center;

text-decoration: none;

display: inline-block;

font-size: 16px;
margin: 4px 2px;

border-radius: 5px;

</style>

</head>

<body>

<div class="container">

<div class="product">

<img src="claener - Copy.png" alt="Headphones">

<h2>Cetaphil Gentle Skin Cleanser 125 ml</h2>

<p class="price">₹499.00</p>

<p>Cetaphil Gentle Skin Cleanser is a mild, non-irritating formulation that soothes


skin as it cleans. In fact, it's gentle enough for a baby's delicate skin..</p>

<button>Add to Cart</button>

</div>

<div class="product">

<img src="aa.png" alt="Alexa">

<h2>Multivitamin SPF 50 PA+++ Sunscreen Gel</h2>

<p class="price">₹150.00</p>

<p>Dermatouch Multivitamin SPF 50 PA+++ Sunscreen gel is formulated with


dermatologically tested and clinically proven actives for a broad-spectrum protection against
UVA and UVB induced radiations.</p>

<button>Add to Cart</button>

</div>

</div>

</body>

</html>
Output:-
Q8. Create a simple resume page?

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>My Resume</title>

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

</head>

<style>

body {

font-family: Arial, sans-serif;

margin: 0;

padding: 0;

background-color: #f4f4f4;

.container {

max-width: 800px;

margin: 20px auto;

padding: 20px;

background: white;

border-radius: 8px;

box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

header {

text-align: center;
margin-bottom: 20px;

header h1 {

margin: 0;

h2 {

border-bottom: 2px solid #4CAF50;

padding-bottom: 5px;

section {

margin-bottom: 20px;

ul {

list-style-type: none;

padding: 0;

.job, .school {

margin-bottom: 15px;

footer {

text-align: center;

margin-top: 20px;
padding: 10px;

background-color: #4CAF50;

color: white;

border-radius: 5px;

</style>

<body>

<div class="container">

<header>

<h1>Tanu</h1>

<p>Web Developer</p>

<p>Email: [email protected] | Phone: (123) 456-7890</p>

</header>

<section class="skills">

<h2>Skills</h2>

<ul>

<li>HTML</li>

<li>CSS</li>

<li>Photoshop</li>

<li>MS Word</li>

<li>Powerpoint</li>

</ul>

</section>

<section class="experience">

<h2>Experience</h2>

<div class="job">
<h3>Web Developer at XYZ Company</h3>

<p>June 2020 - Present</p>

<p>Developed and maintained web applications using HTML, CSS, and


JavaScript.</p>

</div>

<div class="job">

<h3>Intern at ABC Corp</h3>

<p>Jan 2020 - May 2020</p>

<p>Assisted in the development of web applications and learned best practices in


coding.</p>

</div>

</section>

<section class="education">

<h2>Education</h2>

<div class="school">

<h3>Bachelor of Science in Computer Science</h3>

<p>University of Example, 2016 - 2020</p>

</div>

</section>

<footer>

<h2>Contact Me</h2>

<p>Feel free to reach out via email or phone.</p>

</footer>

</div>

</body>

</html>
Output:-
Q9. Build a CSS Hover Effect page?

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>CSS Hover Effect</title>
<link rel="stylesheet" href="styles.css">
</head>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}

.container {
perspective: 1000px;
}

.card {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
padding: 20px;
text-align: center;
transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
transform: scale(1.05);
background-color: blue;
}
</style>
<body>
<div class="container">
<div class="card">
<h2>Hover Over Me!</h2>
<p>This is a simple hover effect example.</p>
</div>
</div>
</body>
</html>

Output:-
Q10. Create a multi page website(static)?
Home.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>About - Multi Page Website</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>About Us</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<h2>About Page</h2>
<p>This page contains information about our website.</p>
</main>
<footer>
<p>&copy; 2023 My Website</p>
</footer>
</body>
</html>

About.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Home - Multi Page Website</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Welcome to My Website</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<h2>Home Page</h2>
<p>This is the home page of the multi-page website.</p>
</main>
<footer>
<p>&copy; 2023 My Website</p>
</footer>
</body>
</html>
Contact.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Contact - Multi Page Website</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Contact Us</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<h2>Contact Page</h2>
<p>This page contains contact information.</p>
</main>
<footer>
<p>&copy; 2023 My Website</p>
</footer>
</body>
</html>
Output:-

You might also like