Ready
Ready
Semester- VI
Lab File
WEB TECHNOLOGY
(KCS602)
Submitted To : Submitted By :
Faculty Name : Mr. Arun Kumar Pandey Sir Name : Kishan Singh
Designation : Assistant Professor Roll No. : 2001641540032
Section : CS-III-DS
Lab Objective Date Marks Sign.
No.
Write HTML/Java scripts to display your CV in
1 navigator,
your Institute website, Department Website and
Tutorial website for specific subject.
Write an HTML program to design an entry form of
2
Student details
Write program using Java script for Web Page to
3
display browsers information.
A super class Detail has been defined to store thedetails of
a customer. Define a subclass Bill to compute the monthly
telephone charge of the customer as per the chart given
below:
Number of Calls Rate
1 – 100 Only Rental charge
4 101 – 200 60 paisa per call + rental
charge
201 – 300 80 paisa per call + rental
charge
Above 300 1 rupee per call + rental
charge
HTML Code :
Output :
Lab2: Write an HTML program to design an entry form of Student details.
HTMl Code: <input type="submit" value="Submit">
</form>
<!DOCTYPE html> </div>
<html> <footer style="text-align: center;">
<head> <p>© Created By KISHAN
<meta charset="UTF-8"> SINGH</p>
<title>Student Details Entry Form</title> </footer>
<link rel="stylesheet" href="lab2.css"> </body>
</head> </html>
<body>
<div class="form-container"> CSS Code:
<h1 style="text-align: center;">Student
Details Entry Form</h1> body{
<form method="post" action=" "> height: 100%;
<label for="name">Name:</label> background-color: antiquewhite;
<input type="text" id="name" }
name="name" placeholder="Enter your name" .form-container {
required> background-color: white;
<label for="email">Email:</label> height: 100%;
<input type="email" id="email" width: 90%;
name="email" placeholder="Enter your email" max-width: 600px;
required> margin: 0 auto;
<label for="phone">Phone:</label> padding: 20px;
<input type="tel" id="phone" border: 1px solid #ccc;
name="phone" placeholder="Enter your phone border-radius: 5px;
number" required> font-family: Arial, sans-serif;
<label for="dob">Date of Birth:</label> }
<input type="date" id="dob" name="dob"
required>
h1, label {
<label for="gender">Gender:</label>
font-size: 20px;
<div class="radio-group">
font-weight: bold;
<input type="radio" id="male"
name="gender" value="male" required> color: #333;
<label for="male">Male</label> display: block;
<input type="radio" id="female" }
name="gender" value="female" required>
<label for="female">Female</label> input[type="text"], input[type="email"],
<input type="radio" id="other" input[type="tel"], textarea, select {
name="gender" value="other" required> width: 100%;
<label for="other">Other</label> padding: 12px;
</div> border: 1px solid #ccc;
<label for="address">Address:</label> border-radius: 4px;
<textarea id="address" name="address" box-sizing: border-box;
placeholder="Enter your address" margin-top: 6px;
required></textarea> margin-bottom: 16px;
<label for="course">Course:</label> resize: vertical;
<select id="course" name="course" font-size: 16px;
required> font-family: Arial, sans-serif;
<option value="">--Select Course-- }
</option>
<option input[type="date"] {
value="B.Tech">B.Tech</option> width: 100%;
<option padding: 12px;
value="M.Tech">M.Tech</option> border: 1px solid #ccc;
<option value="B.Sc">B.Sc</option> border-radius: 4px;
<option value="M.Sc">M.Sc</option> box-sizing: border-box;
</select> margin-top: 6px;
margin-bottom: 16px; }
font-size: 16px;
font-family: Arial, sans-serif; input[type="submit"]:hover {
} background-color: #45a049;
}
.radio-group {
display: flex; input[type="submit"]:focus {
flex-direction: row; outline: none;
margin-top: 6px; }
margin-bottom: 16px; footer {
} color: black;
position: fixed;
.radio-group label { bottom: 0;
margin-right: 10px; width: 100%;
} text-align: center;
max-width: 100%;
input[type="submit"] { margin-bottom: 10px;
background-color: #4CAF50; }
color: white;
padding: 12px 20px; p{
border: none; font-size: 14px;
border-radius: 4px; margin: 0;
cursor: pointer; }
font-size: 16px;
font-family: Arial, sans-serif;
OUTPUT:
Lab3: Write program using Java script for Web Page to display browsers information.
HTML Code:
OUTPUT: