Nawal HTMLfile
Nawal HTMLfile
A Practical File on
Web Technologies
BCA-105P
Batch: BCA-I-E2
Batch (2024-2028)
Page | 1
Web Technology BCA-105P Nawal shingari
INDEX
S. No. Program Date Sign
1. Write HTML code to demonstrate different heading
styles
2. Write an HTML code to display the different
paragraphs with different alignment. Use at least
three Container tags and empty tags.
3. Write an HTML code to print the quadratic equation
as follows:
general form is
a2x+bx+c = 0
a linear equation.”
Page | 2
Web Technology BCA-105P Nawal shingari
Page | 3
Web Technology BCA-105P Nawal shingari
Page | 4
Web Technology BCA-105P Nawal shingari
Page | 5
Web Technology BCA-105P Nawal shingari
Page | 6
Web Technology BCA-105P Nawal shingari
Page | 7
Web Technology BCA-105P Nawal shingari
Practical No. 1
Solution:
<html>
<head>
<title>first program</title>
</head>
<body>
</body>
Page | 8
Web Technology BCA-105P Nawal shingari
Practical No. 2
Aim:Write an Html code to display the different paragraph with different alignment use
atleast 3 container tag and 2 empty tag
Solution:
<html>
<head>
<title>2nd Practical</title>
</head>
<body>
<h1>Web Technologies</h1><hr>
<p align="right">HTML stands for Hyper Text Markup Language. HTML is the standard
markup language for creating Web pages.
HTML describes the structure of a Web page. HTML consists of a series of elements.
<br>
<p align="center">
Page | 9
Web Technology BCA-105P Nawal shingari
The most widely used version throughout the 2000's was HTML 4.01,
<br>
<p align="justify">Web browsers receive HTML documents from a web server or from
local storage and render the documents into multimedia web pages.
HTML describes the structure of a web page semantically and originally included cues for
its appearance.</p>
<p align="left">In 1980, physicist Tim Berners-Lee, a contractor at CERN, proposed and
prototyped ENQUIRE, a system for CERN researchers to use and share documents.
Berners-Lee listed "some of the many areas in which hypertext is used"; an encyclopedia
is the first entry.
The first publicly available description of HTML was a document called "</p>
<hr>
</body>
</html>
Output
Page | 10
Web Technology BCA-105P Nawal shingari
Practical No.3
Aim:
“In mathematics, a quadratic equation is a polynomial equation of the second degree. The
general form is ax²+bx+c=0 where if a ≠ 0 the equation becomes a linear equation. Or,
H2O+O=h2O2.”
Solutions:<html >
<head>
<title>3d practical
</title>
</head>
<body bgcolor="grey">
<p align="left">
Page | 11
Web Technology BCA-105P Nawal shingari
In mathematics, a quadratic equation is: A polynomial equation of the second degree. The
general form is
</p>
</p>
Or,
</p>
</p>
</body>
</html>
Page | 12
Web Technology BCA-105P Nawal shingari
Practical Number 4
Aim: Write a html code to print create a webpage describing IItm. Use blockquote to
display address for sub heading pre tag and use em tag whenever using numbers use
different background color and different color showing text
Solution:
<html >
<head>
<title>Document</title>
</head>
<body bgcolor="pink">
<blockquote cite="https://www.iitmjanakpuri.com/">
Page | 13
Web Technology BCA-105P Nawal shingari
The Institute (IITM) has established a strong foundation for academic excellence.
Guided by the visionary leadership of Shri T.N. Chaturvedi, a recipient of the prestigious Padma
Vibhushan,
India's second-highest civilian honour, IITM embarked on its journey with Shri.
Chaturvedi serving as both the founding President of the society and the institute.
Shri Chaturvedi’s illustrious career marked by his tenure as the Governor of Karnataka,
Parliamentarian,
and Comptroller and Auditor General (CAG) of India, underscored his profound impact in the
realms of education, politics, and
administration.</font></pre>
</blockquote>
</body>
</html>
Page | 14
Web Technology BCA-105P Nawal shingari
Practical Number 5
AIM: Develop an HTML document which displays your name as heading and displays the
name of any four of Your friends in a list. Each friend’s name should be a hyperlink. When you
click a friend’s name, it must open another HTML document which tells about your
friend.Solution:
<html>
<head>
<title>IITM</title></head>
Page | 15
Web Technology BCA-105P Nawal shingari
PRACTICAL-6
AIM: Create a webpage that has named link to move on the top of page and to the bottom of
page.SOLUTION
<html>
<head>
Page | 16
Web Technology BCA-105P Nawal shingari
</head>
<body>
dome dome dome dome dome dome dome dome dome dome dome dome dome
dome dome dome dome dome dome dome dome dome dome dome dome dome dome
dome dome dome dome dome dome dome dome dome dome dome dome dome dome
page<a
name="bottom"></a></h3>
<h3><a href="#top">Go to
top</a></h3>
</body>
Page | 17
Web Technology BCA-105P Nawal shingari
</html>
PRACTICAL-7
AIM: Write an HTML code to 3 images that are aligned left, center and right. Also changes
the background colour as blue of the web page. Give a proper heading to the web page.
<html>
Page | 18
Web Technology BCA-105P Nawal shingari
<head>
<style>
body {
background-color: blue;
color: white;
text-align: center;
left {
float: left;
margin: 10px;
center {
display: inline-block;
right {
float: right;
margin: 10px; }
</style>
</head>
<body>
Page | 19
Web Technology BCA-105P Nawal shingari
<h1>images</h1>
</body>
</html>
PRACTICAL-8
Page | 20
Web Technology BCA-105P Nawal shingari
AIM: Write an HTML code to display the name of courses taught in the institute under the
list headings Morning and Evening Courses respectively using different type of ordered
and unordered list.Solution:
<html>
<head>
</head>
<body>
<ul>
</ul>
<ol>
Page | 21
Web Technology BCA-105P Nawal shingari
</ol>
</body>
</html>
Page | 22
Web Technology BCA-105P Nawal shingari
PRACTICAL-9
AIM: Create an unordered list nested inside ordered list and apply the following : 1. Insert
an image of Main item on top right comer of web page. 2. Display heading as a marquee. 3.
Use different font styles and colors for different ordered list items.
Solution
<html>
<head>
<title> My page</title>
</head>
<style>
.top-right{
position:absolute;
top:0;
right:0;
</style>
</head>
<body>
<img
src="C:\Users\Admin\Desktop\imagesss\imagemaps.jpg"
Page | 23
Web Technology BCA-105P Nawal shingari
computer:</marquee></b></h1>
<ol>
<li><h2>Primary Memory</h2></li>
<ul>
<li><h3>The CPU can directly access primary memory , which is faster than
</ul>
<li><h2>Secondary Memory</h2></li>
<ul>
<li><h3>Secondary memory is used to store data and programs for long period of
time</h3></li>
</ul>
</body>
</html>
Page | 24
Web Technology BCA-105P Nawal shingari
PRACTICAL-11
AIM: Create a Table to display the following table with items in the Décor using ordered
lists and Hyper links. On the click of the Décor items, suitable pages with their images and
information should be dis played.
<html>
<head>
<title>House Types</title>
<style>
table, th, td {
border-collapse: collapse;
padding: 8px;
Page | 25
Web Technology BCA-105P Nawal shingari
</style>
</head>
<body>
<h2>House Types</h2>
<table>
<tr>
<th>HOUSE TYPES</th>
<th>DECOR</th>
<th>ROOMS</th>
<th>PRICE/SQ FT.</th>
</tr>
<tr>
<td>Villas</td>
<td>
<ol>
<li><a href="https://antonovichdesign.ae/uploads/gallery/2019/8/antonovich-design
2019hNmS2PUw4ZM6.jpg">Dining Room</a></li>
<li><a href="https://mir-s3-cdn
cf.behance.net/project_modules/max_1200/8c5c3996344655.5eac2068b6ea8.jpg">
Page | 26
Web Technology BCA-105P Nawal shingari
<li><a href="https://www.ministryofvillas.com/wpcontent/uploads/2019/03/bali-villasantaiubud
31.jpg">Kitchen</a></li>
</ol>
</td>
<td>4BHK</td>
<td>Rs.5000</td>
</tr>
<tr>
<td>Mansions</td>
<td>
<ol>
<li><a href="https://st.hzcdn.com/simgs/pictures/dining-rooms/luxemansion-dining-room-
maraya-interior-design
img~d5c1a8930b871cc8_4-8009-1-4aa0b18.jpg">Dining Room</a></li>
<li><a
href="https://t3.ftcdn.net/jpg/06/70/67/00/360_F_670670052_xZ3DP7FewRtSH4SI
R85MNwygBdsamrC1.jpg">Master Bed
Room</a></li>
<li><a
href="https://i.pinimg.com/474x/65/57/82/655782c2200d0d79819588be1f8328c8.j
pg">Kid's Room</a></li>
<li><a
Page | 27
Web Technology BCA-105P Nawal shingari
href="https://i.pinimg.com/originals/1d/5d/cb/1d5dcb87c251a8633a5a3b6de2c77a3
b.png">Kitchen</a></li>
</ol>
</td>
<td>5BHK</td>
<td>Rs.7000</td>
</tr>
<tr>
<td>Flats</td>
<td>
<ol>
<li><a href="https://www.home-designing.com/wp-content/uploads/2014/06/1-
Bedroom-Apartment-with
Patio.jpg">Single Bedroom</a></li>
<li><a href="https://www.home-designing.com/wp-content/uploads/2014/06/TwoBedroom-
Apartment-with-Unique
Balcony.jpg">Double Bedroom</a></li>
</ol>
</td>
<td>1BHK, 2BHK</td>
<td>Rs.500, Rs.700</td>
</tr>
</table>
Page | 28
Web Technology BCA-105P Nawal shingari
</body>
</html>
PRACTICAL-12
AIM:
i. The contents of upper left frame should open in middle right frame
ii. The content of lower left frame should open in lower-left frame.
Solution
<html>
<head>
<title>Framess </title>
Page | 29
Web Technology BCA-105P Nawal shingari
</head>
<!-- Top row with two frames (left for contents, right for the iitmjanakpuri website) -->
</frameset>
<!-- Middle row with the content from the upper-left frame (Birds) -->
</frameset>
<!-- Bottom row with the content from lower-left (Animals) and audio/video -->
</frameset>
</frameset>
Page | 30
Web Technology BCA-105P Nawal shingari
</html>
PRACTICAL-13
AIM: Make an image map of a Plant showing the usage of shape, coords, href attributes in
map definition. Create 2 hotspots and Link each hotspot to small and bigger images with
details. All the web pages should be designed with proper background color, images, font
styles and headings.
SOLUTION:
< html>
<head>
Page | 31
Web Technology BCA-105P Nawal shingari
<style>
body {
background-color: pink;
color: #333;
h1 {
text-align: center;
color: red;
img {
display: block;
margin: 0 auto;
p{
text-align: center;
font-size: 18px;
</style>
</head>
<body>
Page | 32
Web Technology BCA-105P Nawal shingari
<map name="plantmap">
</map>
</body>
</html>
Page | 33
Web Technology BCA-105P Nawal shingari
Page | 34
Web Technology BCA-105P Nawal shingari
PRACTICAL-14
AIM: Create registration form with at least 3 section personal details, educational details
and hobbies. Use all form controls and 2 buttons-Submit and Cancel. Use Post method in
form.
Solution.
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<h2>Registration Form</h2>
<label for="email">Email:</label>
<option value="intermediate">Intermediate</option>
<option value="bachelors">Bachelors</option>
Page | 35
Web Technology BCA-105P Nawal shingari
<option value="masters">Masters</option>
</select><br><br>
max="2024" required><br><br>
<legend>Hobbies</legend>
<label for="reading">Reading</label><br>
<label for="traveling">Traveling</label><br>
<label for="sports">Sports</label><br>
<label
for="music">Music</label><br>
>
<br>
<button
type="submit">Submit</button>
<button
Page | 36
Web Technology BCA-105P Nawal shingari
type="reset">Cancel</button>
</form>
</body>
</html>
Page | 37
Web Technology BCA-105P Nawal shingari
PRACTICAL-15
AIM: Write an internal CSS rule that make all text size as 18pt and colour as red,
background colour blue. Give the heading style font size as 24pt, font family as sans-serif;
colour black and text align as Centre.
SOLUTION:
<html>
<style>
.h{
font-size:24pt;
font-family: sans-serif;
color: black;
text-align:center;}
p{
font-size:18pt;
color:BLACK;
background-color:PINK;}
</style>
</head>
<body>
Page | 38
Web Technology BCA-105P Nawal shingari
<p> text styling involves properties such as font size,background-color,textalignment to the css
</p>
<p>styles are appeared to web page which is very unique in the css </p>
</body>
</html>
Page | 39
Web Technology BCA-105P Nawal shingari
PRACTICAL-16
AIM: Create an external CSS for anchor, headings, ul, sublisting in UL, LI-em, hover, and
class as selectors
a{
color: blue;
text-decoration: none;
a:hover {
color: darkblue;
text-decoration: underline;
/* Headings Styling */
color: yellow;
margin-bottom: 15px;
Page | 40
Web Technology BCA-105P Nawal shingari
ul {
list-style-type: disc;
padding-left: 20px;
margin-bottom: 15px;
ul ul {
list-style-type: circle;
margin-left: 20px;
.special {
font-size: 18px;
color: green;
font-style: italic;
Page | 41
Web Technology BCA-105P Nawal shingari
PRACTICAL-17
AIM: Create a web page to show the usage of alert box and confirm box
SOLUTION:
<html>
<head></head>
<body>
<script language=”javascript”type=”text/javascript”>
Function warning()
</script>
<form>
</form>
Page | 42
Web Technology BCA-105P Nawal shingari
</body>
</html>
<html>
<head></head>
<body>
<script type=”text/javascript”>
Function confirmation(){
If(val==true){
Document.write(“continued!”);
Return true;
}else{
Document.write(“not continued!”);
Return false;
</script>
<form>
</form>
</body>
Page | 43
Web Technology BCA-105P Nawal shingari
</html>
Page | 44
Web Technology BCA-105P Nawal shingari
PRACTICAL-18
SOLUTION:
<html>
<head>
<body>
<div class="container">
<p id="displayName"></p>
</div>
<script>
function displayUserName() {
if (userName) {
userName + "!";
} else {
a name.";
Page | 45
Web Technology BCA-105P Nawal shingari
</script>
</body>
</html>
Page | 46
Web Technology BCA-105P Nawal shingari
PRACTICAL-19
AIM: Write a Program in JavaScript to calculate the reverse of a number entered by the
user
SOLUTION:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Reverse a Number</title>
<style>
body {
background-color: #f4f4f9;
margin: 0;
padding: 20px;
.container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
Page | 47
Web Technology BCA-105P Nawal shingari
max-width: 400px;
margin: auto;
text-align: center;
h1 {
color: #333;
button {
font-size: 16px;
cursor: pointer;
background-color: #007BFF;
color: white;
border: none;
border-radius: 5px;
button:hover {
background-color: #0056b3;
.result {
font-size: 20px;
Page | 48
Web Technology BCA-105P Nawal shingari
color: #007BFF;
font-weight: bold;
margin-top: 20px;
</style>
</head>
<body>
<div class="container">
<h1>Reverse a Number</h1>
</div>
<script type="text/javascript">
function reverseNumber() {
return;
Page | 49
Web Technology BCA-105P Nawal shingari
</script>
</body>
</html>
Page | 50
Web Technology BCA-105P Nawal shingari
PRACTICAL-20
AIM: Write a Program in JavaScript to find the factorial of a number a) All numbers
between 1 to 10 b) Any number given by user c) All numbers between the starting and
ending number given by the user
SOLUTION:
<html>
<head>
<script type="text/javascript">
function factorial(num)
var i, num;
var f=1;
for(i=num;i>=1;i--)
f=f*i;
return(f);
</script></head>
Page | 51
Web Technology BCA-105P Nawal shingari
<body>
<script type="text/javascript">
</script>
</body>
</html>
<html>
<head>
<script type="text/javascript">
function factorial(num) {
var i, num;
var f=1;
Page | 52
Web Technology BCA-105P Nawal shingari
for(i=num;i>=1;i--
f=f*i; }
document.write(f); }
</script>
</head>
<body>
<script type="text/javascript">
factorial(num);
</script>
</body>
</html>
<html>
<head>
<title>factorial of a range</title>
<script>
fact=1;
fact=Number(fact);
Page | 53
Web Technology BCA-105P Nawal shingari
strt=Number(strt);
for(i=strt;i<=end;i++)
{ j=i;
end=Number(end);
while(j!=1) {
fact=fact*j;
j--; }
fact=1; }
</script>
</head>
</html>
Page | 54
Web Technology BCA-105P Nawal shingari
PRACTICAL-21
AIM: Create a menu driven program using switch case. Functions to be performed-
Addition, Subtraction, Multiplication, Division
SOLUTION:
<html>
<head>
<title>Calculator Menu</title>
Page | 55
Web Technology BCA-105P Nawal shingari
</head>
<body>
<div>
<h1>Calculator Menu</h1>
<p>Select an operation:</p>
<button onclick="calculate(1)">Addition</button>
<button onclick="calculate(2)">Subtraction</button>
<button onclick="calculate(3)">Multiplication</button>
<button onclick="calculate(4)">Division</button>
</div>
<script>
function calculate(choice) {
if (isNaN(num1) || isNaN(num2)) {
return;
let result;
switch (choice) {
Page | 56
Web Technology BCA-105P Nawal shingari
case 1: // Addition
${result}`;
break;
case 2: // Subtraction
= ${result}`;
break;
case 3: // Multiplication
${num2} = ${result}`;
break;
case 4: // Division
if (num2 === 0) {
undefined.";
} else {
Page | 57
Web Technology BCA-105P Nawal shingari
= ${result}`;
break;
default:
</script>
</body>
</html>
Page | 58
Web Technology BCA-105P Nawal shingari
PRACTICAL-22
AIM: Create an array to accept the numbers from user. The size of the array will be given by the
user. Print all the items
SOLUTION:
<html>
<head>
</head>
<body>
<div>
Page | 59
Web Technology BCA-105P Nawal shingari
</div>
<script>
function createAndDisplayArray() {
return;
if (isNaN(num)) {
} else {
numbers.push(num);
Page | 60
Web Technology BCA-105P Nawal shingari
");
</script>
</body>
PRACTICAL-23
AIM: Create an array [23,45,6,13,9,12,67,12,1, 63] and perform the following operations i.
Remove the last item and print the new length of array ii. Add 3 items in array and print
the updated array and length iii. Sort the array and print iv. Print the index and last index
of 12 v. Create another array of 3 items , concatenate the two arrays and print vi. Join all
the items of the new concatenated array and print using newline as separator
SOLUTION
<html>
<head>
<title>Array Operations</title>
</head>
Page | 61
Web Technology BCA-105P Nawal shingari
<body>
<div>
<h1>Array Operations</h1>
</div>
<script>
function performArrayOperations() {
arr.pop();
Page | 62
Web Technology BCA-105P Nawal shingari
output += concatenatedArray.join("<br>");
document.getElementById("result").innerHTML = output;
</script>
</body>
Page | 63
Web Technology BCA-105P Nawal shingari
</html>
Page | 64
Web Technology BCA-105P Nawal shingari
PRACTICAL-24
AIM: Write a JavaScript code using arrays to: a) accept 10 numbers from user and display
them b) Print the count of how many are +ive, -ive and zero Display the list of numbers
ssssswhich are positive and, negative
<html>
<head>
</head>
<body>
<div>
<h1>Number Analysis</h1>
</div>
<script>
function analyzeNumbers() {
let zeroCount = 0;
let positiveCount = 0;
let negativeCount = 0;
Page | 65
Web Technology BCA-105P Nawal shingari
if (isNaN(num)) {
i--;
} else {
numbers.push(num);
if (num > 0) {
positiveNumbers.push(num);
positiveCount++;
negativeNumbers.push(num);
negativeCount++;
} else {
zeroCount++;
Page | 66
Web Technology BCA-105P Nawal shingari
document.getElementById("result").innerHTML = output;
</script>
</body>
</html>
Page | 67
Web Technology BCA-105P Nawal shingari
PRACTICAL-25
AIM: Write a script that displays the various Math functions and properties
SOLUTION:
<html>
<head>
</head>
<body>
<div class="buttons">
<button onclick="showPI()">PI</button>
Page | 68
Web Technology BCA-105P Nawal shingari
<button onclick="showE()">E</button>
</div>
<script>
function showPI() {
function showE() {
function showSquareRoot() {
Page | 69
Web Technology BCA-105P Nawal shingari
document.getElementById("result").innerText = `Math.sqrt(16):
${Math.sqrt(16)}`;
function showPower() {
${Math.pow(2, 8)}`;
function showRound() {
document.getElementById("result").innerText = `Math.round(4.7):
${Math.round(4.7)}`;
function showCeil() {
document.getElementById("result").innerText = `Math.ceil(4.1):
${Math.ceil(4.1)}`;
function showFloor() {
document.getElementById("result").innerText = `Math.floor(4.9):
${Math.floor(4.9)}`;
function showRandom() {
document.getElementById("result").innerText = `Math.random():
${Math.random()}`;
Page | 70
Web Technology BCA-105P Nawal shingari
function showAbs() {
7)}`;
function showMax() {
${Math.max(3, 7, 1, 9)}`;
function showMin() {
${Math.min(3, 7, 1, 9)}`;
function showLog() {
document.getElementById("result").innerText = `Math.log(1):
${Math.log(1)}`;
</script>
</body>
</html>
Page | 71
Web Technology BCA-105P Nawal shingari
PRACTICAL-26
AIM: Write a script that reads a date from an HTML form and creates a Date object in
which to store that date. Then, use the various method of Date object to display the date in
several formats.
SOLUTION:
!DOCTYPE html>
<html lang="en">
<head>
Page | 72
Web Technology BCA-105P Nawal shingari
<style>
</style>
</head>
<body>
<h2>Enter a Date</h2>
<form id="dateForm">
</form>
<script>
function displayDateFormats() {
if (!inputDate) {
Page | 73
Web Technology BCA-105P Nawal shingari
return;
if (isNaN(dateObj.getTime())) {
return;
document.getElementById("output").innerHTML = `
`;
Page | 74
Web Technology BCA-105P Nawal shingari
</script>
</body>
</html>
PRACTICAL-27
AIM: Write a script that displays the various String Functions based on the below
conditions i. Store a string “Apples are round, and apples are juicy” ii. Display the index of
apples iii. Use substr(1,2) and substring(1) to create a new substring iv. Display the
character at location 5 v. Replace the substring creates in (iii) with “Web Technologies
Lab”
SOLUTION:
<!DOCTYPE html>
Page | 75
Web Technology BCA-105P Nawal shingari
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<script>
Page | 76
Web Technology BCA-105P Nawal shingari
document.getElementById("result").innerText = output;
</script>
</body>
</html>
PRACTICAL-28
Make a registration form with atleast following fields- First Name, Last Name,
Qualification, course, marks percentage, Date of birth, email id, mobile number, Submit &
reset buttons. Implement atleast the below mentioned validations: i. Name should be in
capitals ii. Form should not be blank iii. Phone should only be numeric, accepts only 10
digits iv. Age to be calculated from date of birth, and readonly v. Percentage should only
have whole number, if decimal, convert it. vi. Upon submission of form, display name &
location in alert box vii. Upon reset, all controls should be set to default value(or blank) viii.
Required fields- first name, D.O.B, percentage
Page | 77
Web Technology BCA-105P Nawal shingari
SOLUTION
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Registration Form</title>
<style>
input, select, button { display: block; margin: 10px 0; padding: 8px; width: 100%; }
</style>
</head>
<body>
<h2>Registration Form</h2>
<form id="registrationForm">
Page | 78
Web Technology BCA-105P Nawal shingari
<label for="qualification">Qualification:</label>
<label for="course">Course:</label>
<label for="age">Age:</label>
Page | 79
Web Technology BCA-105P Nawal shingari
</form>
<script>
function calculateAge() {
if (dob) {
age--;
document.getElementById("age").value = age;
function submitForm() {
Page | 80
Web Technology BCA-105P Nawal shingari
return;
return;
return;
if (percentage % 1 !== 0) {
document.getElementById("percentage").value = Math.floor(percentage);
Page | 81
Web Technology BCA-105P Nawal shingari
document.getElementById("error").innerText = "";
function resetForm() {
document.getElementById("registrationForm").reset();
document.getElementById("age").value = "";
document.getElementById("error").innerText = "";
</script>
</body>
</html>
Page | 82