1. Galgotias College of Engineering and
Technology
Session: 2021-22
Web Technology Lab
[KCS 652]
Bachelor of Technology
CS-AI
Submitted To: Submitted By:
Ms. Sonal Shukla Anuj Kumar Kem
Roll no: 2000971520007
Sem: VI
2. S No. Program Date Sign
1 Write HTML/Java scripts to display your CV in
navigator, your Institute website, Department
Website and Tutorial
website for specific subject
2 Write an HTML program to design an entry
form of student details and send it to store at
database server like SQL,
Oracle or MS Access.
3 Write programs using Java script for Web Page
to display browsers information.
4 Write a Java applet to display the Application
Program screen i.e. calculator and other.
5 Writing program in XML for creation of DTD,
which specifies set of rules. Create a style sheet
in CSS/ XSL & display
the document in internet explorer.
6
7
3. Program -1
Objective: Write HTML/Java scripts to display your CV in navigator, your Institute website,
Department Website and Tutorial website for specific subject
Theory:
HTML stands for Hyper Text Markup Language. HTML is the computer language that is used to
create documents for display on the Web. Many editors exist to create Web Pages Word, Front
Page, and Dream Weaver are just a few. Nevertheless, each of these software programs (editors)
performs the exact same task they all generate HTML language. The HTML language consists
of a series of HTML tags. Learning HTML involves finding out what tags are used to mark the
parts of a document and how these tags are used in creating an HTML document. Tags are
instructions that tell your browser what to show on a Web page. They break up your document
into basic sections. All tags start with a < (left bracket) and end with a > (right bracket).
Code:
HTML code:
<!DOCTYPE html>
<html>
<head>
<title>Program-1</title>
<style>
/* Style for navigation bar */
div{
color: rgb(7, 167, 36);
}
nav {
height: 100%;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #e5971a;
overflow-x: hidden;
padding-top: 20px;
}
/* Style for navigation bar links */
nav a {
display: block;
color: black;
text-align: left;
6. Program -2
Objective: Write an HTML program to design an entry form of student details and send it to
store at database server like SQL, Oracle or MS Access.
Theory:
File Select box The file fields allow a user to browse for a local file and send it as an attachment
to the form data. It normally rendered as a text box with a button that enables the user to browse
for a file. However, the user can also type the path and name of the file in the text box.This is
also created using an <input> element, whose type attribute value is set to file. Textarea Textarea
is a multiple-line text input control that allows a user to enter more than one line of text. Multi-
line text input controls are created using an <textarea> element. Select Boxes A select box is a
drop down list of options that allows user to select one or more option from a pull-down list of
options. Select box is created using the <select> element and <option> element. The option
elements within the <select> element define each list item. Submit and Reset Buttons A submit
button is used to send the form data to a web server. When submit button is clicked the form data
is sent to the file specified in the form’s action attribute to process the submitted data. A reset
button resets all the forms control to default values
Code:
<html>
<head>
<title>Student Registration Form</title>
<style>
body{
background-color: rgb(172, 220, 155);
}
h2{
font-family: Sans-serif;
font-size: 24px;
font-style: normal;
font-weight: bold;
color: #141618;
text-align: center;
text-decoration: underline
}
table{
font-family: 'Calibri';
color:white;
font-size: 16px;
font-style: normal;
font-weight: bold;
background: linear-gradient(to bottom, #30464e 0%, #303fb6 100%);
border-collapse: collapse;
12. BCA(Bachelor of Computer Applications)<br>
<input type="radio" name="CourseBCom" value="B.Com">
B.Com(Bachelor of Commerce)<br>
<input type="radio" name="CourseBSc" value="B.Sc">
B.Sc(Bachelor of Science)<br>
<input type="radio" name="CourseBA" value="B.A">
BA(Bachelor of Arts)<br>
<input type="radio" name="CourseMCA" value="BCA">
MCA(Master of Computer Applications)<br>
</td>
</tr>
<!----------------------- Submit and Reset ------------------------------->
<tr>
<td colspan="2" align="center">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</td>
</tr>
</table>
</form>
</body>
</html>
OUTPUT:
13.
14. Program -3
Objective: Write programs using Java script for Web Page to display browsers information.
Theory:
The navigator object contains information about the browser. Navigator Object Properties
Property Description appCodeName Returns the code name of the browser appName Returns the
name of the browser appVersion Returns the version information of the browser cookieEnabled
Determines whether cookies are enabled in the browser geolocation Returns a Geolocation object
that can be used to locate the user’s positionlanguage Returns the language of the browser online
Determines whether the browser is online platform Returns for which platform the browser is
compiled product Returns the engine name of the browser userAgent Returns the user-agent
header sent by the browser to the server
Code:
<!DOCTYPE HTML>
<html>
<head>
<title>
Get browser details through JavaScript
</title>
</head>
<body>
<style>
body {
background-image:
url('https://upload.wikimedia.org/wikipedia/commons/0/01/Mozilla_Firefox_2004_Log
o.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
<!-- The text field -->
<h1 align="center">Getting Browser details</h1>
<div id="example"></div>
<script>
txt = "<p><b>Browser CodeName:</b> " + navigator.appCodeName + "</p>";
txt+= "<p><b>Browser Name: </b>" + navigator.appName + "</p>";
txt+= "<p><b>Browser Version: </b>" + navigator.appVersion + "</p>";
txt+= "<p><b>Cookie enabled:</b>" + navigator.cookieEnabled + "</p>";
txt+= "<p><b>Geolocation: </b>" + navigator.geolocation + "</p>";
16. Program -4
Objective: Write a Java applet to display the Application Program screen i.e. calculator and
other.
Theory:
An applet is a Java program that runs in a Web browser. An applet can be a fully functional Java
application because it has the entire Java API at its disposal.
These import statements bring the classes into the scope of our applet class −
java.applet.Applet
java.awt.Graphics
Without those import statements, the Java compiler would not recognize the classes Applet and
Graphics, which the applet class refers to.
Code:
17. Program -5
Objective: Writing program in XML for creation of DTD, which specifies set of rules. Create
a style sheet in CSS/ XSL & display
the document in internet explorer.
Theory:
Code: