Webtechlab
Webtechlab
:- Date:-
EXPERIMENT NO- 1
Objective- Write HTML/Java scripts to display your CV in navigator, your Institute
website, Department Website and Tutorial website for specific subject.
<DOCTYPE HTML>
<html>
<body style="background-color:white;">
<div style="position:absolute;top:90px;left:800px;color:red;">
</div>
<u>Curriculum Vitae</u></i></h1>
Pradeep Chauhan</span></i></h1>
</div>
<h1 style="font-size:20pt;">Objective</h1>
1
Experiment no.:- Date:-
<table>
<tr>
<th>Qualification</th>
<th>Maximun Marks</th>
<th>Obtained Marks</th>
<th>Division</th>
<th>Institution</th>
<th>Bord/University</th>
</tr <tr>
<td>b.tech in progress</td>
<td>-----</td>
<td>-----</td>
<td>None</td>
<td>A.K.T.University </td>
</tr>
<tr>
<td>Intermediate School</td>
<td>500</td>
<td>425</td>
<td>First</td>
2
Experiment no.:- Date:-
</tr>
<tr>
<td>500</td>
<td>442</td>
<td>First</td>
</tr>
</table>
<hr>
<hr>
1.Honesty<br>
2.Team Spirit<br>
3.Accepting Challenges
<hr>
<h1 style="font-size:15pt;">LANGUAGES:</h1>
hindi, english
<hr>
<h1 style="font-size:15pt;">INTEREST:</h1>
3
Experiment no.:- Date:-
2.Reading books</br>
3.website development
<hr>
<h1 style="font-size:15pt;">REFERENCE:</h1>
<hr>
<h1>
</div>
</body>
</html>
4
Experiment no.:- Date:-
Output:-
5
Experiment no.:- Date:-
EXPERIMENT NO– 2
Code:-
<!-- Html Document Begins-->
<!DOCTYPE html>
<html>
<!-- Header Section-->
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
Student Registration Form
</title>
</head>
<!--Start of Form-->
<div style="margin: auto;width: 30%;">
<form>
<h2>Student Registration Form</h2>
<p>Fill in this form to register</p>
6
Experiment no.:- Date:-
<br>
<!--Input elemets for form-->
<label><b>First Name</b></label>
<input type="text" placeholder="Enter your first name" name="first_name" required>
<br>
<br>
<label><b>Last Name</b></label>
<input type="text" placeholder="Enter your last name" name="last_name" required>
<br>
<br>
<label><b>E-mail</b></label>
<input type="email" placeholder="Enter your e-mail" name="email" required>
<br>
<br>
<label><b>Date of Birth</b></label>
<input type="date" name="dob" required>
<br>
<br>
<label><b>Set Username</b></label>
<input type="text" placeholder="Set Username" name="username" required>
<br>
<br>
<label><b>Set Password</b></label>
<input type="password" placeholder="Set password" name="password" required>
<br>
7
Experiment no.:- Date:-
<br>
<label><b>Gender</b></label><br>
<input type="radio" name="gender" value="Male">
<label for="Male">Male</label><br>
<input type="radio" name="gender" value="Female">
<label for="Female">Female</label><br>
<input type="radio" name="gender" value="Others">
<label for="Others">Others</label>
<br>
<br>
<label><b>Course :</b></label>
<select>
<option value="Course">Course</option>
<option value="CS">Computer Fundamentals</option>
<option value="AI">Artificial Intelligence</option>
<option value="ML">Machine Learning</option>
<option value="OOPS">Object Oriented Programming</option>
<option value="DBMS">Database Management System</option>
</select>
<br>
<br>
<input type="button" value="Register"/>
</form>
</div>
</body>
8
Experiment no.:- Date:-
Output:-
9
Experiment no.:- Date:-
EXPERIMENT No-3
Objective- Write programs using Java script for Web Page to display browsers
information.
Code: -
<!DOCTYPE HTML>
<html>
<head>
<title>
</title>
</head>
<body>
<div id="example"></div>
<script>
document.getElementById("example").innerHTML=txt;
</script>
</body>
</html>
10
Experiment no.:- Date:-
Output:-
11
Experiment no.:- Date:-
EXPERIMENT NO- 4
Objective:- Write an XML program using DTD.
Code:-
<employee>
<name>
<lastname>Kelly</lastname>
<firstname>Grace</firstname>
</name>
<project>
<product>Printer</product>
<id>111</id>
<price>$111.00</price>
</project>
<project>
12
Experiment no.:- Date:-
<product>Laptop</product>
<id>222</id>
<price>$989.00</price>
</project>
</projects>
</employee>
<employee>
<name>
<lastname>Grant</lastname>
<firstname>Cary</firstname>
</name>
<projects>
<project>
<product>Desktop</product>
<id>333</id>
<price>$2995.00</price>
</project>
<project>
<product>Scanner</product>
<id>444</id>
<price>$200.00</price>
</project>
</projects>
</employee>
<employee>
<name>
<lastname>Gable</lastname>
<firstname>Clark</firstname>
</name>
<hiredate>October 25, 2005</hiredate>
13
Experiment no.:- Date:-
<projects>
<project>
<product>Keyboard</product>
<id>555</id>
<price>$129.00</price>
</project>
<project>
<product>Mouse</product>
<id>666</id>
<price>$25.00</price>
</project>
</projects>
</employee>
</document>
OUTPUT:-
October 20,
October 25,
14
Experiment no.: - Date:-
EXPERIMENT NO- 5
Code:-
importjava.sql.*;
importjava.util.*;
class Main
{
public static void main(String a[])
{
//Creating the connection
String url = "jdbc:oracle:thin:@localhost:1521:xe";
String user = "system";
String pass = "12345";
15
Experiment no.: - Date:-
catch(Exception ex)
{
System.err.println(ex);
}
}
}
Output:-
enter name
ABC
enter roll no
001
enter class
3CSE B
inserted successfully : insert into student Values (‘ABC’, 001, ‘3CSE B’);
16
Experiment no.: - Date:-
17