Sycs Web Technology Practical Manual Semester - Iii
Sycs Web Technology Practical Manual Semester - Iii
4. Practical No :- 4
a) To Calculate Factorial Of A Given Number. 23/07/2024
b) To Calculate The Fibonacci Series Up To n Terms.
5. Practical No :- 5
a) Aim :- To Work With The Strings In Html And Javascript.
b) Aim :- To Work With Date & Time In Html And 30/07/2024
Javascript.
6. Practical No :- 6
Aim :- Write A PHP Script For Retrieving Data From HTML 10/09/2024
Forms.
7. Practical No :- 7
a) Aim:- Write A PHP And HTML Script To Design
Registration Form And Retrieve Data From.
b) Aim :- Write A PHP Script For Performing Certain
Mathematical Operations Such As Calculating Factorial.
c) Aim :- Write A PHP Script To Print Fibonacci Series up to
10 Terms 10/09/2024
d) Aim :- Write A HTML And PHP Script To Input Lower
Bound & Upper Bound & Print All The Prime Number
Between Lower Bound and Upper Bound.
e) Aim :- Write A PHP Script For Performing Certain
Mathematical Operations To Calculate Reverse Of A
Number.
8 Practical No :- 8
Aim :- Write PHP Script For Storing and Retrieving Cookies. 10/09/2024
PRACTICAL NO 1 :-
a) Aim :- Design A Webpage That Makes Use Of Document Structure Tags.
Source Code :-
<html>
<head>
<title> Practical Number :- 1(A) Use Of Structure Document Tag
</title>
</head>
<body>
<div>
<h3> Design A Webpage That Makes Use Of Document Structure
Tags. </h3>
<p> This is a Paragraph......</p>
</div>
</body>
</html>
Output :-
b) Aim :- Various Text Formatting Tags.
Source Code :-
<html>
<head>
<title> Practical No:- 1(B) </title>
</head>
<h1> Practical No :- 1(B) </h1>
<p> <b> CGT </b>
</p>
<p> <I> WEB TECHNOLOGY </I></p>
<p> <u> CORE JAVA </u></p>
<p> X<sup> 2 </sup></p>
<h2> Log<sub> e </sub></h2>
<h2><strike> DATABASE MANAGEMENT SYSTEM </strike></h2>
</body>
</html>
Output :-
c) Aim :- List Tags.
Source Code :-
<html>
<head>
<title> Practical No :- 1(C) LIST TAG EXAMPLES</title>
</head>
<body>
<h1> TYPE OF LIST TAG </h1>
<h3> ORDER LIST </h3>
<ol type="1">
<li> C Programming </li>
<li> Object Oriented Using C++ </li>
<li> Linux </li>
</ol>
<h3> UNORDER LIST </h3>
<ul type="disc">
<li> Web Technologies </li>
<li> Advance Database System </li>
<li> Java </li>
<li> Operating System </li>
</ul>
<dl>
</dt>
<dt> FRUITS </dt>
<dt> APPLE <br> MANGO </dt>
<dt> COLORS </dt>
<dt> BLUE <br> GREEN </dt>
<dt> SPORTS </dt>
<dt> HOCKEY <br> CRICKET </dt>
</dl>
</body>
</html>
Output :-
PRACTICAL NO :- 2
a) Aim :- Design A Webpage That Makes Use Of Table.
Source Code :-
<html>
<head>
<title> Student Details </title>
</head>
<body>
<h3> Aim :- DESIGN A WEBPAGE THAT MAKES USE OF TABLE </h3>
<table border="3" width="55">
<tr>
<td colspan="5" align="center"> STUDENT DETAILS </td>
</tr>
<tr>
<th> ID </th>
<th> NAME </th>
<th> AGE </th>
<th> CITY </th>
<th> MOBILE </th>
</tr>
<td align="center"> 14 </td>
<td align="center"> Sapna Gupta</td>
<td align="center"> 19 </td>
<td align="center"> Mumbai </td>
<td align="center"> 8947351252 </td>
</tr>
<tr>
<td align="center"> 15 </td>
<td align="center"> Nikhil Hadawale</td>
<td align="center"> 20</td>
<td align="center"> Navi Mumbai </td>
<td align="center"> 9998774854 </td>
</tr>
<tr>
<td align="center"> 07 </td>
<td align="center"> Yash Dhotre</td>
<td align="center"> 18 </td>
<td align="center"> Marine Dive </td>
<td align="center"> 9875157656 </td>
</tr>
</tr>
</body>
</html>
Output :-
b) Aim :- Form Tags (forms with various elements)
Source Code :-
<html>
<head>
<title> Student REGISTRATION FORM</title>
</head>
<body>
<marquee ><h1>Welcome To Sanpada College</h1></marquee>
<table border="2" align="center">
<form>
<tr>
<td colspan="2" align="center"><h3>STUDENT FORM</h3></td>
</tr>
<td>
FIRST NAME:</td><td><input type="text" id="first name">
</td>
</tr>
<tr>
<td>
MIDDLE NAME:
</td>
<td><input type="text" id="middle name">
</td>
</tr>
<tr>
<td>
LAST NAME:
</td>
<td><input type="text" id="LAST name"><br>
<br>
<td>
</tr>
<tr>
<td>
GENDER:</td>
<td>
<input type="radio" name="r" checked>
MALE<input type="radio" name="r">FEMALE
</td>
</tr>
<tr>
<td>
USERNAME:</td>
<td>
<input type="text" id="USERNAME">
</td>
</tr>
<tr>
<td>
DOB:</td>
<td>
<input type="text" id="DOB">
</td>
</tr>
<tr>
<td>
ADDRESS:</td>
<td>
<textarea></textarea>
</td>
</tr>
<tr colspan="2" align="center">
<td>
<input type="SUBMIT" value="submit" name="submit">
</td>
</tr>
</table>
</form>
</body>
</html>
Output :-
c) Aim :- Navigation Across Multiple Pages.
<html>
<head>
<title> Social Media </title>
T
<body>
<h1>Practical 2(C)-Navigation Across Multiple Pages:</h1>
<table border="4" >
<tr>
<th colspan="4" align= "centre"> Social Media </th>
</tr>
<tr>
<td><a href="https://www.facebook.com\mdquadirsailani"
target="_blank"><img src="D:\SYCS NIKHIL SANDIP HADAWALE\SYCS
WEB TECHNOLOGY\facebook.jpg"="60px" width="60px"></a></td>
<td><a href="https://www.instagram.com/quadirsailani/"
target="_blank"><img src=""D:\SYCS NIKHIL SANDIP HADAWALE\SYCS
WEB TECHNOLOGY\instagram.jpg" height="60px"
width="60px"></a></td>
</tr>
</table>
</body>
Output :-
PRACTICAL NO :- 3
a) Aim :- To Design Website Using CSS (Cascading Style Sheets).
Source Code :-
<html>
<head>
<style>
#divRed{
background-color:red;
color:white;
height:200px;
width=1200px;
font-family:georgia;
font-size:21px;
}
#divGreen{
background-color:Green;
color:black;
height:200px;
width=1200px;
font-family:georgia;
font-size:21px;
}
</style>
</head>
<body>
<div id="divRed">
We Are In The divRed
<p> This Paragraph Will Have A Red Background Color. And <br> TextColor Is
White</p>
</div>
<div id="divGreen">
We Are In The divGreen
<p> This Paragraph Will Have A Green Background Color. And <br> TextColor
Is Black</p>
We Are Still In The div Element.
</div>
</body>
<html>
Output :-
b) Aim :- CSS Properties To Change Fonts And Styles
Source Code :-
<html>
<head>
<style>
p.normal
{
font-family:TimesNewRoman;
font-style:normal;
font-size:25px;
}
p.italic
{
font-family:georgia;
font-style:italic;
font-size:35px;
color:blue;
}
</style>
</head>
<body>
<p class="normal"> Paragraph In Normal Form</p>
<p class="italic"> Italic Style </p>
This Is A Normal Paragraph.
</body>
</html>
Output :-
PRACTICAL NO :- 4
Output :-
b) Aim :- To Work With Date & Time In Html And Javascript.
Source Code :-
<html>
<body>
<h1> Practical No :- 5.B - Date And Time </h1>
Display Current Time : <span id = 'txt'> </span>
<script>
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
document.getElementById('txt').innerHTML=h+":"+m+":"+s;
var date = new Date();
var day = date.getDate();
var month = date.getMonth()+1;
var year = getFullYear();
document.write("<br> Date Is : "+day+"/"+month+"/"+year);
</script>
</body>
</html>
Output :-
Practical No :- 6
Aim :- Write A PHP Script For Retrieving Data From HTML Forms.
Source Code :-
</html>
<body>
<h2> The XMLHttpRequestObject</h2>
<p id="demo"> Let AJAX Change This Text.</p>
<button type="button" onclick="loadDoc()"> Change Content </button>
<script>
function loadDoc()
{
var xhttp = new XMLHttpRequest();
xhttp.open("GET", "test.txt", false);
xhttp.send();
document.getElementById("demo").innerHTML = xhttp.responseText;
}
</script>
</body>
</html>
Output :-
Practical No :- 7
a) Aim:- Write A PHP And HTML Script To Design Registration Form And
Retrieve Data From.
Source Code :-
File Name :- regis.html
<html>
<head>
<title>Registration Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h2>Registration Form</h2>
<form action="GetData.php" method="POST">
<b>First name:</b>
<input type="text" name="firstname">
<br/>
<b> Last name:</b>
<input type="text" name="lastname"><br/>
<b>Username</b>
<input type ="text" name="Username">
<br/>
<b>Email Id</b>
<input type="text" name="Email">
<br/>
<input type="submit" value="Submit">
</form>
</body>
</html>
Output :-