SlideShare una empresa de Scribd logo
1 de 17
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
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
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;
padding: 16px;
font-size: 20px;
text-decoration: none;
}
/* Style for active link */
nav a.active {
background-color: #de3f13;
color: white;
}
body {
background-size: cover;
}
</style>
</head>
<body background="lab1.avif">
<!-- Navigation bar -->
<nav>
<a href="https://drive.google.com/file/d/1BJTwWnLNAjwgdgsgdsfbsdvs"><b>CV</b></a>
<a href="https://galgotiacollege.edu/welcome-to-gcet"><b>Institute</b></a>
<a href="https://galgotiacollege.edu/department-of-cs-
engineering"><b>Department</b></a>
<a href="https://www.javatpoint.com/css-navigation-bar"><b>Tutorial</b></a>
</nav>
<div >
<p align="center" ><h1 align="center">Web Technology Lab</h1>
<br><h2 align="center">Program-1</h2>
<br><h3 align="center"><b>By: Anuj Kumar Kem</b></h3>
</p>
</div>
</body>
</html>
OUTPUT:
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;
border: 4px solid #000000;
border-style: double;
}
table.inner{
border: 20px
}
input[type=text], input[type=email], input[type=number]{
width: 50%;
padding: 6px 12px;
margin: 5px 0;
box-sizing: border-box;
}
input[type=submit], input[type=reset]{
width: 15%;
padding: 8px 12px;
margin: 5px 0;
box-sizing: border-box;
}
</style>
</head>
<body>
<h2>Student Registration Form</h3>
<table align="center" cellpadding = "10">
<!--------------------- First Name ------------------------------------------>
<tr>
<td>First Name</td>
<td><input type="text" name="FirstName" maxlength="50" placeholder="ANIKET" />
</td>
</tr>
<!------------------------ Last Name --------------------------------------->
<tr>
<td>Last Name</td>
<td><input type="text" name="LastName" maxlength="50" placeholder="TRIPATHI"/>
</td>
</tr>
<!-------------------------- Email ID ------------------------------------->
<tr>
<td>Email ID</td>
<td><input type="email" name="EmailID" maxlength="100"
placeholder="trianiket2001@gmail.com"/></td>
</tr>
<!-------------------------- Mobile Number ------------------------------------->
<tr>
<td>Mobile Number</td>
<td>
<input type="text" name="MobileNumber" maxlength="10" placeholder="6388xxxxxx"/>
</td>
</tr>
<!---------------------- Gender ------------------------------------->
<tr>
<td>Gender</td>
<td>
<input type="radio" name="Gender" value="Male" />
Male
<input type="radio" name="Gender" value="Female" />
Female
</td>
</tr>
<!--------------------------Date Of Birth----------------------------------->
<tr>
<td>Date of Birth(DOB)</td>
<td>
<select name="BirthDay" id="Birth_Day">
<option value="-1">Day:</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="BirthdayMonth" id="Birth_Month">
<option value="-1">Month:</option>
<option value="January">Jan(1)</option>
<option value="February">Feb(2)</option>
<option value="March">Mar(3)</option>
<option value="April">Apr(4)</option>
<option value="May">May(5)</option>
<option value="June">Jun(6)</option>
<option value="July">Jul(7)</option>
<option value="August">Aug(8)</option>
<option value="September">Sep(9)</option>
<option value="October">Oct(10)</option>
<option value="November">Nov(11)</option>
<option value="December">Dec(12)</option>
</select>
<select name="BirthdayYear" id="Birth_Year">
<option value="-1">Year:</option>
<option value="2019">2019</option>
<option value="2018">2018</option>
<option value="2017">2017</option>
<option value="2016">2016</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
<option value="1995">1995</option>
<option value="1994">1994</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
<option value="1980">1980</option>
</select>
</td>
</tr>
<!------------------------- Address ---------------------------------->
<tr>
<td>Address<br /><br /><br /></td>
<td><textarea name="Address" rows="10" cols="50"></textarea></td>
</tr>
<!-------------------------- City ------------------------------------->
<tr>
<td>City</td>
<td><input type="text" name="City" maxlength="50" placeholder="Greater Noida"/>
</td>
</tr>
<!----- -------------------- Pin Code-------------------------------------->
<tr>
<td>Pin Code</td>
<td><input type="Number" name="PinCode" maxlength="6" placeholder="201310"/>
</td>
</tr>
<!---------------------------- State ----------------------------------->
<tr>
<td>State</td>
<td><input type="text" name="State" maxlength="50" placeholder="Uttar Pradesh"/>
</td>
</tr>
<!------------------------------ Country --------------------------------->
<tr>
<td>Country</td>
<td><input type="text" name="Country" placeholder="India" /></td>
</tr>
<!------------------------- Hobbies -------------------------------------->
<tr>
<td>Hobbies <br /><br /><br /></td>
<td>
<input type="checkbox" name="HobbyCricket" value="Cricket" />
Cricket
<input type="checkbox" name="HobbySinging" value="Singing" />
Singing
<input type="checkbox" name="HobbyDancing" value="Dancing" />
Dancing
<input type="checkbox" name="HobbyExploring" value="Exploring" />
Exploring
<br />
<input type="checkbox" name="HobbyOther" value="Other">
Others
<input type="text" name="Other_Hobby" maxlength="50" placeholder="Ex- Sleeping"
/>
</td>
</tr>
<!-----------------------Qualification---------------------------------------->
<tr>
<td>Qualification <br /><br /><br /></td>
<td>
<br/>
<input type="checkbox" name="HighSchool" value="High School" />
High School(10th)<br>
<input type="checkbox" name="HigherSchool" value="Higher School" />
Higher School(12th)<br/>
<input type="checkbox" name="Graduation" value="Graduation" />
Graduation(Bachelors)<br/>
<input type="checkbox" name="PostGraduation" value="Post Graduation" />
Post Graduation(Masters)<br/>
<input type="checkbox" name="Phd" value="Phd">
Phd
</td>
</tr>
<!---------------------------- Courses ----------------------------------->
<tr>
<td>Courses<br />Applied For</td>
<td>
<input type="radio" name="CourseBCA" value="BCA">
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:
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>";
txt+= "<p><b>Language used: </b>" + navigator.language + "</p>";
txt+= "<p><b>Online: </b>" + navigator.onLine + "</p>";
txt+= "<p><b>Platform: </b>" + navigator.platform + "</p>";
txt+= "<p><b>Product: </b>" + navigator.product + "</p>";
txt+= "<p><b>User agent: </b>" + navigator.userAgent + "</p>";
document.getElementById("example").innerHTML=txt;
</script>
</body>
</html>
OUTPUT:
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:
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:

Más contenido relacionado

Similar a Webtech File.docx

Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/jsKnoldus Inc.
 
LESS is More
LESS is MoreLESS is More
LESS is Morejsmith92
 
LessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG MeetingLessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG MeetingMyles Braithwaite
 
LeSS in action
LeSS in actionLeSS in action
LeSS in actionPu Shiming
 
Class 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & IdsClass 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & IdsErika Tarte
 
Lect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptxLect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptxzainm7032
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheetstutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheetstutorialsruby
 
Chapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssChapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssTesfaye Yenealem
 
Corilennyg gmail-com-rsp2
Corilennyg gmail-com-rsp2Corilennyg gmail-com-rsp2
Corilennyg gmail-com-rsp2cori0506
 
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...dezyneecole
 

Similar a Webtech File.docx (20)

Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
LESS is More
LESS is MoreLESS is More
LESS is More
 
Day of code
Day of codeDay of code
Day of code
 
WEB DEVELOPMENT
WEB DEVELOPMENTWEB DEVELOPMENT
WEB DEVELOPMENT
 
LessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG MeetingLessCSS Presentation @ April 2015 GTALUG Meeting
LessCSS Presentation @ April 2015 GTALUG Meeting
 
LeSS in action
LeSS in actionLeSS in action
LeSS in action
 
Team styles
Team stylesTeam styles
Team styles
 
Class 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & IdsClass 2: CSS Selectors, Classes & Ids
Class 2: CSS Selectors, Classes & Ids
 
Lect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptxLect-4-Responsive-Web-06032024-082044am.pptx
Lect-4-Responsive-Web-06032024-082044am.pptx
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
Chapter 4a cascade style sheet css
Chapter 4a cascade style sheet cssChapter 4a cascade style sheet css
Chapter 4a cascade style sheet css
 
Css
CssCss
Css
 
This is a test
This is a testThis is a test
This is a test
 
Thuray css3
Thuray css3Thuray css3
Thuray css3
 
Corilennyg gmail-com-rsp2
Corilennyg gmail-com-rsp2Corilennyg gmail-com-rsp2
Corilennyg gmail-com-rsp2
 
Css tips & tricks
Css tips & tricksCss tips & tricks
Css tips & tricks
 
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
Kirtesh Khandelwal,Project on HTML and CSS ,Final Year BCA , Dezyne E'cole Co...
 
Html5 ux london
Html5 ux londonHtml5 ux london
Html5 ux london
 
Sass Essentials
Sass EssentialsSass Essentials
Sass Essentials
 

Último

tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...chiefasafspells
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...masabamasaba
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 

Último (20)

tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 

Webtech File.docx

  • 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;
  • 4. padding: 16px; font-size: 20px; text-decoration: none; } /* Style for active link */ nav a.active { background-color: #de3f13; color: white; } body { background-size: cover; } </style> </head> <body background="lab1.avif"> <!-- Navigation bar --> <nav> <a href="https://drive.google.com/file/d/1BJTwWnLNAjwgdgsgdsfbsdvs"><b>CV</b></a> <a href="https://galgotiacollege.edu/welcome-to-gcet"><b>Institute</b></a> <a href="https://galgotiacollege.edu/department-of-cs- engineering"><b>Department</b></a> <a href="https://www.javatpoint.com/css-navigation-bar"><b>Tutorial</b></a> </nav> <div > <p align="center" ><h1 align="center">Web Technology Lab</h1> <br><h2 align="center">Program-1</h2> <br><h3 align="center"><b>By: Anuj Kumar Kem</b></h3> </p> </div> </body> </html>
  • 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;
  • 7. border: 4px solid #000000; border-style: double; } table.inner{ border: 20px } input[type=text], input[type=email], input[type=number]{ width: 50%; padding: 6px 12px; margin: 5px 0; box-sizing: border-box; } input[type=submit], input[type=reset]{ width: 15%; padding: 8px 12px; margin: 5px 0; box-sizing: border-box; } </style> </head> <body> <h2>Student Registration Form</h3> <table align="center" cellpadding = "10"> <!--------------------- First Name ------------------------------------------> <tr> <td>First Name</td> <td><input type="text" name="FirstName" maxlength="50" placeholder="ANIKET" /> </td> </tr> <!------------------------ Last Name ---------------------------------------> <tr> <td>Last Name</td> <td><input type="text" name="LastName" maxlength="50" placeholder="TRIPATHI"/> </td> </tr> <!-------------------------- Email ID -------------------------------------> <tr> <td>Email ID</td> <td><input type="email" name="EmailID" maxlength="100" placeholder="trianiket2001@gmail.com"/></td> </tr> <!-------------------------- Mobile Number -------------------------------------> <tr> <td>Mobile Number</td> <td>
  • 8. <input type="text" name="MobileNumber" maxlength="10" placeholder="6388xxxxxx"/> </td> </tr> <!---------------------- Gender -------------------------------------> <tr> <td>Gender</td> <td> <input type="radio" name="Gender" value="Male" /> Male <input type="radio" name="Gender" value="Female" /> Female </td> </tr> <!--------------------------Date Of Birth-----------------------------------> <tr> <td>Date of Birth(DOB)</td> <td> <select name="BirthDay" id="Birth_Day"> <option value="-1">Day:</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option>
  • 9. <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="BirthdayMonth" id="Birth_Month"> <option value="-1">Month:</option> <option value="January">Jan(1)</option> <option value="February">Feb(2)</option> <option value="March">Mar(3)</option> <option value="April">Apr(4)</option> <option value="May">May(5)</option> <option value="June">Jun(6)</option> <option value="July">Jul(7)</option> <option value="August">Aug(8)</option> <option value="September">Sep(9)</option> <option value="October">Oct(10)</option> <option value="November">Nov(11)</option> <option value="December">Dec(12)</option> </select> <select name="BirthdayYear" id="Birth_Year"> <option value="-1">Year:</option> <option value="2019">2019</option> <option value="2018">2018</option> <option value="2017">2017</option> <option value="2016">2016</option> <option value="2015">2015</option> <option value="2014">2014</option> <option value="2013">2013</option> <option value="2012">2012</option> <option value="2011">2011</option> <option value="2010">2010</option> <option value="2009">2009</option> <option value="2008">2008</option> <option value="2007">2007</option> <option value="2006">2006</option> <option value="2005">2005</option> <option value="2004">2004</option> <option value="2003">2003</option> <option value="2002">2002</option> <option value="2001">2001</option> <option value="2000">2000</option> <option value="1999">1999</option> <option value="1998">1998</option>
  • 10. <option value="1997">1997</option> <option value="1996">1996</option> <option value="1995">1995</option> <option value="1994">1994</option> <option value="1993">1993</option> <option value="1992">1992</option> <option value="1991">1991</option> <option value="1990">1990</option> <option value="1989">1989</option> <option value="1988">1988</option> <option value="1987">1987</option> <option value="1986">1986</option> <option value="1985">1985</option> <option value="1984">1984</option> <option value="1983">1983</option> <option value="1982">1982</option> <option value="1981">1981</option> <option value="1980">1980</option> </select> </td> </tr> <!------------------------- Address ----------------------------------> <tr> <td>Address<br /><br /><br /></td> <td><textarea name="Address" rows="10" cols="50"></textarea></td> </tr> <!-------------------------- City -------------------------------------> <tr> <td>City</td> <td><input type="text" name="City" maxlength="50" placeholder="Greater Noida"/> </td> </tr> <!----- -------------------- Pin Code--------------------------------------> <tr> <td>Pin Code</td> <td><input type="Number" name="PinCode" maxlength="6" placeholder="201310"/> </td> </tr> <!---------------------------- State -----------------------------------> <tr> <td>State</td> <td><input type="text" name="State" maxlength="50" placeholder="Uttar Pradesh"/> </td> </tr> <!------------------------------ Country --------------------------------->
  • 11. <tr> <td>Country</td> <td><input type="text" name="Country" placeholder="India" /></td> </tr> <!------------------------- Hobbies --------------------------------------> <tr> <td>Hobbies <br /><br /><br /></td> <td> <input type="checkbox" name="HobbyCricket" value="Cricket" /> Cricket <input type="checkbox" name="HobbySinging" value="Singing" /> Singing <input type="checkbox" name="HobbyDancing" value="Dancing" /> Dancing <input type="checkbox" name="HobbyExploring" value="Exploring" /> Exploring <br /> <input type="checkbox" name="HobbyOther" value="Other"> Others <input type="text" name="Other_Hobby" maxlength="50" placeholder="Ex- Sleeping" /> </td> </tr> <!-----------------------Qualification----------------------------------------> <tr> <td>Qualification <br /><br /><br /></td> <td> <br/> <input type="checkbox" name="HighSchool" value="High School" /> High School(10th)<br> <input type="checkbox" name="HigherSchool" value="Higher School" /> Higher School(12th)<br/> <input type="checkbox" name="Graduation" value="Graduation" /> Graduation(Bachelors)<br/> <input type="checkbox" name="PostGraduation" value="Post Graduation" /> Post Graduation(Masters)<br/> <input type="checkbox" name="Phd" value="Phd"> Phd </td> </tr> <!---------------------------- Courses -----------------------------------> <tr> <td>Courses<br />Applied For</td> <td> <input type="radio" name="CourseBCA" value="BCA">
  • 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>";
  • 15. txt+= "<p><b>Language used: </b>" + navigator.language + "</p>"; txt+= "<p><b>Online: </b>" + navigator.onLine + "</p>"; txt+= "<p><b>Platform: </b>" + navigator.platform + "</p>"; txt+= "<p><b>Product: </b>" + navigator.product + "</p>"; txt+= "<p><b>User agent: </b>" + navigator.userAgent + "</p>"; document.getElementById("example").innerHTML=txt; </script> </body> </html> OUTPUT:
  • 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: