WT Lab Manual
WT Lab Manual
Of Branch in Semester S
Enrolment No. has satisfactorily
completed the term work in subject code subject
name within four walls of
Vishwakarma Government Engineering College, Chandkheda.
Date of Submission:ddddddddddddddddd
LIST OF PRACTICALS
Practical: 1
Aim: Create your resume using HTML tags. Experiment with colors, text, link,
and also other tags you studied.
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
font-family: Tahoma;
} a {
text-decoration: none; color: black;
} hr
{
<p>
<h2>Anupam Mathur </h2>
<b>Email: </b><a href="mailto: aannuuppaamm11@gmail.com"
target="_blank">aannuuppaamm11@gmail.com</a>
<br>
<b>Contact Number: </b>+91 8989068956
<br>
</p>
<hr>
<p>
<h2><u>About </u></h2>
<h3 style="font-weight: 200; text-align: justify;">
To work in a challenging and dynamic environment and to keep adding value to
the organization that I represent and serve, while also concurrently
upgrading my skills and knowledge.
Good communicator,
Quick learner with crisp problem solving and analysis skills.
1|Page
Web Technology (3161012) Enrollment No: 190170111061
</h3>
</p>
<br>
<p>
<h2><u>Education</u></h2>
<b style="color: rgb(41, 41, 41);">Vishwakarma Government Engineering
College</b><br>
Bachelor of Engineering - BE, Electronics and Communications Engineering<br>
2019-2023
<br>
<br>
<b style="color: rgb(41, 41, 41);">Hillwoods School </b><br>
2|Page
Web Technology (3161012) Enrollment No: 190170111061
OUTPUT:
3|Page
Web Technology (3161012) Enrollment No: 190170111061
4|Page
Web Technology (3161012) Enrollment No: 190170111061
Practical: 2
Aim: Design static web pages for your college containing a description of
the courses, departments, faculties, library etc. Provide links for navigation
among pages
CODE:
<html>
<head>
<title> VGEC
</title>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js">
</script>
} ul
li {
li a {
none;
5|Page
Web Technology (3161012) Enrollment No: 190170111061
line-height: 30px;
</style>
</head>
<body>
<ul>
<li><a href="WD_B3_19_21_2.html">Home</a></li>
<li><a href="WD_B3_19_21_2_1.html">Course</a></li>
<li><a href="WD_B3_19_21_2_2.html">Departments</a></li>
<li><a href="WD_B3_19_21_2_3.html">Library</a></li>
</ul>
<section>
<H1>Welcome TO VGEC</H1>
<p>
</p>
<h2>MISSION</h2>
<p>
6|Page
Web Technology (3161012) Enrollment No: 190170111061
</section>
</body>
</html>
7|Page
Web Technology (3161012) Enrollment No: 190170111061
Output
8|Page
Web Technology (3161012) Enrollment No: 190170111061
Practical: 3
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Division I timetable</title>
<style>
table, th, td
border-collapse: collapse;
th
</style>
9|Page
Web Technology (3161012) Enrollment No: 190170111061
</head>
<body>
<br />
<tr>
<th>Day/Time</th>
<th>10:30 - 11:30</th>
<th>11:30 - 12:30</th>
<th>01:00 - 02:00</th>
<th>02:00 - 03:00</th>
<th>03:15 - 05:15</th>
<th>Subjects/Faculties</th>
</tr>
<tr>
<td>AP - GRA</td>
<td>FOC - UNF</td>
<td>CN - JKN</td>
<td>WT - ARA</td>
<td>AP - GRA</td>
<br/><br/><br/>
<b>Faculty Name:<br/></b>
</td>
</tr>
<tr>
<td>FOC - UNF</td>
<td>IPDC - NPP</td>
<td>AP - GRA</td>
<td>ES - RMP</td>
<td>FOC - UNF</td>
</tr>
11 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
<tr>
<td>CN - JKN</td>
<td>AP - JJM</td>
<td>IPDC - AMP</td>
<td>ES - RMP</td>
<td>WT - KBC</td>
</tr>
<tr>
<td>ES - JND</td>
<td>FOC - UNF</td>
<td>CN - KRT</td>
<td>AP - JJM</td>
<td>ES - RMP</td></td>
</tr>
<tr>
<td> </td>
<td>WT - KBC</td>
<td colspan="2">DE-2B-NPP</td>
<td>CN - JKN</td>
</tr>
12 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
13 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
OUTPUT:
14 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 4
Aim: Create user feedback form using textbox, text area, checkbox, radio
button, select box, button etc.
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Forms</title>
</head>
<body>
<h2 style="text-
align: center;">HTML form containing: textbox, textarea, radio button,
checkbo x and button</h2>
<br/> <br
/>
<form>
<br />
<br/>
<br />
Select Gender:<br />
15 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
<label for="male">Male</label><br>
<label for="female">Female</label><br>
<label for="other">Other</label>
<br/>
<br />
Take any two courses:<br />
<br/>
<br />
<input type="submit" value="Submit">
</form>
</body>
</html>
16 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
OUTPUT:
17 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
18 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 5
Aim: Create Webpage using frame. Divide the page into two parts with
navigation links on left hand side of page(width=20%) and current page on right
hand side of page(width=80%).on clicking the navigation links corresponding
content must be shown on the right hand side.
CODE:
<!DOCTYPE html>
<html>
<head>
<title>Frames</title>
</head>
<body>
<div style="float: left; width: 20%; height: 100vh;">
<ol>
<li><a style="font-size:x-large" href="Timetable.html"
target="screen">TimeTable</a></li>
<li><a style="font-size:x-large" href="resume.html"
target="screen">Resume</a></li>
<li><a style="font-size:x-large" href="vgec.html"
target="screen">VGEC</a></li>
</div>
<div style="float: right; width: 80%; height: 100vh;">
<iframe name="screen" style="width: 100%; height:
100vh;"></iframe>
</div>
</body>
</html>
19 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
OUTPUT:
20 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 6
Aim: write html code to develop a webpage having two frames that divide
the webpage into two equal rows and then divide the row into equal
columns fill each frame with a different background color.
CODE:
<html>
<head>
<title>Nested frame</title>
</head>
<frameset rows="50%,*">
<frameset cols="25%,25%,25%,*">
<frame style="background-color: black ">
<frame style="background-color: white;" >
<frame style="background-color: black; ">
<frame style="background-color: white; ">
</frameset>
<frameset cols="25%,25%,25%,* ">
<frame style="background-color: white; ">
<frame style="background-color: black; ">
<frame style="background-color: white; ">
<frame style="background-color: black; ">
</frameset>
</frameset>
</html>
OUTPUT:
21 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
22 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 7
Aim: Use External CSS to format your class timetable as you created in
practical no 03
NOTE: For External CSS just add the following highlighted link to an external CSS file
{here styles.css} in the head tag of the HTML webpage for class timetable created in
practical 03.
CODE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Division I timetable</title>
</head>
Contents of styles.css
h2{
body{
background-color: blanchedalmond;
}
table, th, td
23 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
border-collapse: collapse;
background-color: cyan;
font-family: Garamond, serif;
th
Output:
24 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 8
Aim: Use External, Internal, Inline CSS to format college web page that you
created in practical no 02
Note: The contents of <style>tag consists of Internal CSS. For External CSS
A link to an external stylesheet {here: styles.css} has been added in the <head>
Tag of the HTML file whereas for Inline CSS various elements are provided with
Nested <style> element.
CODE:
<!DOCTYPE html>
<html>
<head>
<title> VGEC</title>
<style>
} ul {
li {
25 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
li a {
section p {
line-height: 30px;
</style>
</head>
<body>
26 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
<ul>
</ul>
<section>
<p id="para1">
27 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
</p>
<p id="para2">
</p>
</section>
</body>
</html>
28 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Output:
29 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
30 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 9
Aim: Develop a java script to display Current date and time dynamically.
CODE:
<!DOCTYPE html>
<html>
<head>
<style>
h1{
#p2,#p1{
</style>
</head>
<body>
<p id="p1"></p>
<p id="p2">This example shows the current date and time using
Javascript</p>
<script>
31 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
</body>
</html>
OUTPUT:
32 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 10
Aim: Develop simple calculator for addition, subtraction, multiplication and
division operation using java script
CODE:
<!DOCTYPE html>
<head>
<style> h1 {
text-align: center; padding: 23px;
background-color: coral; color: white;
}
#clear{
width: 270px;
border: 3px solid gray; border-radius: 3px; padding: 20px; background-color:
gold;
font-family:"lucida console",monospace;
}
.formstyle
width: 300px;
input
width: 20px;
33 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
#calc{
width: 250px;
border: 5px solid black; border-radius: 3px; padding: 20px; margin: auto;
}
</style>
</head>
<body>
<!-- This input box shows the button pressed by the user in calculator. -->
<!-- onclick() function display the number prsses by the user. -->
<br> <br>
<br> <br>
34 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
<br> <br>
<!-- When we click on the '=' button, the onclick() shows the sum results on
the calculator screen. -->
<input type = "button" value = "=" onclick = "form1.answer.value =
eval(form1.answer.value) ">
<br>
<!-- Display the Cancel button and erase all data entered by the user. -->
<br>
</form>
</div>
</body>
</html>
35 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
OUTPUT:
36 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 11
Aim: Create HTML Page with java script which takes Integer number as input
and tells whether the number is Prime or not.
CODE:
<html>
<head>
<style>
h1{
margin-top: 150px;
}
</style>
<script>
function Prime()
var i,flag=0,number;
if(number%i == 0)
flag = 1; break;
}}
if(flag == 0)
window.alert("prime number");
else
}}
</script>
</head>
<body>
<br>
</body>
</html>
OUTPUT:
38 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 12
Aim: Write a PHP script for user authentication using PHP-MYSQL. Use
session for storing username.
CODE:
Connect.php
<?php
$server = "localhost";
$user = "root";
$password = "";
$db = "wd";
?>
Login.php
'footer.php'; session_start();
$message = '';
$_POST["password"];
39 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
= '$password'";
$result = $conn->query($sql);
0) {
loggedon.php');
} else {
?>
<div class="container">
<div class="card-header">
<h2>
Login
</h2>
</div>
<div class="card-body">
<div class="form-group">
40 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
<label for="exampleInputEmail1">Username</label>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
</div>
</div>
</form></div>
</div>
</div> Loggedon.php
?>
41 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
<div class="container-fluid">
</div>
</div>
OUTPUT:
42 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
Practical: 13
Aim: Create a login form, after login maintain the session, user should be
kept login for 5 mins (Either on click event and using timer). Then after
user should be automatically logged out and redirected to login page.
CODE:
Login.php <?php
~E_NOTICE );
?>
<style> * { box-
sizing: border-
box;
body{ background-
color: pink;
} input[type=password],input[type=email], select,
vertical;
input[type=submit] { background-
cursor: pointer;
43 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
.column, input[type=submit] {
right:100px;
</style>
<div class="container">
<h2>Login here</h2>
<label for="fname">Email</label>
<label for="fname">password</label>
</form>
</div>
</div>
Logout.p
hp
44 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
<?php session_destroy();
header("location: login.php?message=$message");
?>
Display.php
<?php session_start();
?>
<style> * { box-sizing:
border-box;
} input[type=password],input[type=email], select,
vertical;
pointer;
.column, input[type=submit] {
45 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
</style>
<div class="container">
</div>
</div>
{ redirect(); }, 5000*60);
};
</script>
prac9_2.p
hp
<?php
$_POST["password"];
if(($email=='parth@gmail.com')&&($password
=='123')){ session_start();
$_SESSION['id'] = session_id();
$_SESSION['name']= $name;
?>
46 | P a g e
Web Technology (3161012) Enrollment No: 190170111061
OUTPUT:
47 | P a g e