Documente Academic
Documente Profesional
Documente Cultură
AND
RESEARCH CENTRE
Roll No.-14EJCCS093
Year/Semester-IV Year/VII Semester
Batch- B/B1
INDEX
OBJECTIVE: Write an HTML code to create a login form. On submitting the form, the user should get navigated to a
profile page.
<html>
<body>
<form>
<table width="20%" bgcolor="0099CC" align="center">
<tr>
<td colspan=2><center><font size=4><b>HTML Login Page</b></font></center></td>
</tr>
<tr>
<td>Username</td>
<td><input type="text" size=25 name="userid"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="Password" size=25 name="pwd"></td>
</tr>
<tr>
<td ><input type="Reset"></td>
<td><input type="submit" onclick="check(this.form)" value="Login"></td>
</tr>
</table>
</form>
<script language="javascript">
function check(form)
{
</body>
</html>
OUTPUT
ASSIGNMENT 02
<html>
<head>
<style type="text/css">
p{
color:purple;
margin-left:20px;
}
div{
color:purple;
font-size:16px;
background-color:#FF6633;
}
</style>
</head>
<body>
<p>This is a paragraph line.</p>
<div>This is a paragraph Second line.</div>
</body>
<html>
OUTPUT
ASSIGNMENT 03
OBJECTIVE: Write a java script to prompt for users name and display it on the screen.
<!DOCTYPE html>
<html>
<head>
<script>
var customerName = prompt("Please enter your name", "");
if (customerName!= null) {
document.getElementById("welcome").innerHTML =
"Hello " + customerName + "! How are you today?";
}
</script>
</head>
<body>
<div id="welcome">My First JavaScript code.</div>
</body>
</html>
ASSIGNMENT 04
OBJECTIVE: Write a program using java script for web page to display browsers information.
<script language=javascript>
function show()
{
document.write("Name "+navigator.appName+"<br>");
document.write("Version "+navigator.appVersion +"<br>");
document.write("Codename " +navigator.appCodeName +"<br>");
document.write("Cookie enable"+navigator.cookieEnabled +"<br>");
document.write("Java Enable"+navigator.javaEnabled +"<br>");
document.write("Mime type"+navigator.mimeTypes +"<br>");
document.write("Platform"+navigator.platform +"<br>");
document.write("Plug ins"+navigator.plugins +"<br>");
document.write("System Language"+navigator.systemLanguage +"<br>");
document.write("User language"+navigator.userAgent +"<br>");
document.write("User Agent"+navigator.userAgent +"<br>");
</script>
</head>
<body>
<form id="form1">
<div>
<input id="Button1" type="button" value="Click me" onclick="show()" />
</div>
</form>
</body>
</html>
ASSIGNMENT 05
OBJECTIVE: Write a program in XML and create a style sheet in CSS and display the document in internet explorer.
OBJECTIVE: Write an HTML code to create a frameset having header, navigation and content sections.
<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: powderblue;}
h1 {color: blue;}
p {color: red;}
</style>
</head>
<body>
</body>
</html>
ASSIGNMENT 09
OBJECTIVE: Write a program using PHP and html to create a form and display the details entered by the user.
<!DOCTYPE html>
<html>
<head>
<title>Add Employee</title>
</head>
<body>
<h1>Add Employee</h1>
<form method="post" action="process.php">
<label>First Name:</label>
<input type="text" name="first_name"/><br/>
<label>Last Name:</label>
<input type="text" name="last_name"/><br/>
<label>Department:</label>
<input type="text" name="department"/><br/>
<label>Email:</label>
<input type="email" name="email"/><br/>
<input type="submit" value="Add Employee"/>
</form
</body>
</html>