Web Technology Lab File
Web Technology Lab File
GuruGobindSinghIndraprasthaUniversity, Delhi
DHTML,CSS& XML
• • DHTML • Write a CSS rule that make all 4
1)CSS text size as 18pt and color as red,
2)CSS with background color blue. Give the
Style heading style font size as 24pt,
elements and font family as sans-serif, color
class black and text align as Centre.
and • Write a CSS rule for EM, H1 and
inheritance P elements. Create Class
3)Linking attributes that applies a style class
External and inheritance
Style sheet • Write an external linking style
sheet to Create a website which
show the different courses in your
institute
• • DHTML • Write a program to show the 4
1)CSS-Positioning conflicting style
elements. • Create a site of Solar System and
2)CSS Elements insert an image of planets and
Dimension. position the style as absolute and give
a proper margins as top ,left, right and
bottom
• Write a CSS rule that set the three box
dimension and align the text. The first
box should be 20%, second division
should be 80% and centre aligns. And
in the third division give a proper
height and width.
• • DHTML • Create a web page, which applies the 4
1)Filters & invert filter to an image, glow filter to
Transition a hyperlink.
• Create a web page, which attaches
two filters to the object. The first
causes the image to blur over a
specified number of pixels. The
second filter flips the image
vertically.
• Using Alpha filter change the content
by changing the Opacity property.
• Using transition's apply and play
method freezes the appearance of an
object and then invokes the transition.
”.
• Mozilla Firefox
It is known as the swiss army knife of the internet. It runs on windows,
android and apple devices as well. It protects the user’s privacy on the
internet to some extent. It is free and open source web browser. The recent
version of Firefox on windows is Firefox 86. Some of the features pushed by
Firefox are:- picture in picture mode, protection from cross site cookies,
malicious super cookies and better bookmarks.
• Google Chrome
As the name suggests, Chrome browser is developed by Google. It is a very
fast browser. Most of the people around the world love this browser due to
its lightening fast speed. The current version of Chrome browser is 89 on
windows platform. It can be used on macOs, iOS, android and Microsoft
devices. Chrome uses AI to improve the users experience. Chrome has just
rolled out browser sandbox method to enhance the security.
• Microsoft Edge
It is developed by Microsoft. It is the default browser of the windows
operating system. It is rebuilt with chromium open source project. It is faster
than its previous versions. Edge’s current version is 89 for the windows
platform. Microsoft defender smartScreen protects the user from phishing
attacks. It disables the trackers to protect the privacy of the user. User can
access the pdf much quicker.
• Opera
Opera is another browser based on chromium project which means it is a fast
browser. It is available on windows, android, mac OS and iOS. The current
version of opera for windows platform is opera 74. Some of its features
include in built VPN and adblocker which means this browser enhances the
privacy of the user. It has crypto wallet feature, and we can use this feature
to pay in cryptocurrency as well. Apart from this opera has some cool
extensions as well.
Types of search engine and its functionality
Search engine:-A search engine is a software that is used to search the world wide
web. Google, Yahoo, Yandex, Bing, DuckDuckGo etc. are some of the very
famous search engine nowadays. However, there are categories of the web browser
which most of the people don’t know.
• Crawler Based Search Engine
A crawler based search engine uses automated programs to access the web
pages. The programs that are used by these search engines are known as
spiders, bots, crawlers etc. The next process is a bot downloads the page,
analyses it and then show it to the web page. Example of crawlers based
search engines are google and ask jeeves.
Practical – 1
Aim :-
Create a web page which display a message “This is my First web page “, using
different level of headings.
Source Code :-
<html>
<head>
<title>
My First Web Page
</title>
</head>
<body>
<h1 style="color: orange"> This is my first web page using heading 1. </h1>
<h2 style="color: blue"> This is my first web page using heading 2. </h2>
<h3 style="color: green"> This is my first web page using heading 3. </h3>
<h4 style="color: aqua"> This is my first web page using heading 4. </h4>
<h5 style="color: violet"> This is my first web page using heading 5. </h5>
<h6 style="color: brown"> This is my first web page using heading 6. </h6>
</body>
</html>
Output :-
Practical – 2
Aim :-
Write an HTML code to display the different paragraphs with different alignment.
Source Code :-
<!DOCTYPE html>
<html>
<head>
<title>
My second practical.
</title>
</head>
<body>
<hr>
<p style="text-align: left"> This paragraph is aligned to the <b> left. </b></p>
<hr>
<p style="text-align: center"> This paragraph is aligned to the <i> centre. </i></p>
<hr>
<p style="text-align: right"> This paragraph is aligned to the <big> right.
</big></p>
<hr>
</body>
</html>
Output :-
Practical – 3
Aim :-
Write an HTML code to display your Syllabus. Use at least three Container tags
and empty tags.
Source Code :-
<html>
<head>
<title>WT Syllabus of BCA</title>
</head>
<body>
<div style="margin: 50px;padding:20px;background-color:#EBEDEF;">
<center><img src="syllabus.jpg"/></center>
<p style="font-size: 25px; font-weight: bold;">UNIT – I</p>
<p style="font-size: 20px;text-align:justify;line-height: 20px;">History of the
Internet and World Wide Web, Search Engines, News-group, E-mail and its
Protocols, Web Portal, Browsers and their versions, Its functions, URLs, web sites,
Domain names, Portals.
Static Web Development: HTML - Introduction to HTML, HTML Document
structure tags, HTML comments, Text formatting, inserting special characters,
anchor tag, adding images and Sound, lists types of lists, tables, frames and
floating frames, Developing Forms, Image maps.</p>
<p align="right">[No. of Hrs: 11]</p>
<hr/>
</p>
<p align="right">[No. of Hrs: 11]</p>
<hr/>
</p>
<p align="right">[No. of Hrs: 11]</p>
<hr/>
<p style="font-weight:bold;">TEXT BOOKS</p>
<p>[T1] The complete reference HTML, by Thomas A powell, TMH publication.
<br/>
[T2] Mastering HTML 4.0 by Deborah S. Ray and Erich J. Ray. BPB Publication.
<br/>
[T3] Internet and World Wide Web Deitel HM, Deitel ,Goldberg , Third
Edition<br/>
</p>
<p style="font-weight:bold;">
REFERNCES,</p>
<p>
[R1] HTML Black Book , Stephen Holzner, Wiley Dreamtech.<br/>
[R2]Rajkamal, “Web Technology”, Tata McGraw-Hill, 2001.<br/>
[R3] Jeffrey C. Jackson, “Web Technologies : A Computer Science Perspective”,
Pearson. <br/>
[R4]XML How to Program by Deitel Deitel Nieto.<br/>
</p>
</div>
</body>
</html>
Output:-
Practical – 4
Aim :- Write an HTML code to print the quadratic equation asfollows:
In mathematics, a quadratic equation is a polynomial HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Equation" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial" HYPERLINK
"http://en.wikipedia.org/wiki/Polynomial"equation of the second degree. The
general form is
ax2+bx+c = 0
• where a ≠ 0. (For if a = 0, the equation becomes a linear equation
Source Code :-
<!DOCTYPE html>
<html>
<head>
<title>
Quadratic Equation
</title>
</head>
<body>
<p> In <ins>mathematics</ins>, a <b>quadratic equation</b><br/> is a
polynomial equation of the second<br/> degree. The general form is<br/>
ax<sup>2</sup>+bx+c = 0 <br/>
<blockquote>where <i> a </i> ≠ 0. (For if a = 0, the <br/> equation becomes a
<ins>linear <br/> equation</ins>
</blockquote>
</p>
</body>
</html>
Output :-
Practical – 5
Aim :-
Create a web page describing you. Use <block quote> to display address, for sub
headings <pre> tag and use <em> tag wherever you are using numbers. Use
different background color & different color showing text.
Source Code :-
<!DOCTYPE html>
<html>
<head>
<title>
Practical 5
</title>
</head>
<body bgcolor="">
<h1 style="color: orangered;">
Information about Me<hr/>
</h1>
<p style="color:black;"> My name is <b>Vaibhav Kumar </b> . I am <em> 20
</em> years old. I am currently pusrsuing BCA from <strong> IP University
</strong>.
I live in Uttam nagar. <blockquote style="font-size: medium;">My address
is : <em>wz-50 om vihar, uttam nagar, New Delhi- 46</em></blockquote>
I passed my 10 and 12<sup>th</sup> class from Kendriya Vidayalaya
which is located in Vikas Puri.
</p>
<pre>
Written By :- vaibhav Kumar
</pre>
</body>
</html>
Output :-
Practical – 6
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.
Source Code : -
(Main Page)
<!DOCTYPE html>
<html>
<head>
<title> Friend </title>
</head>
<body bgcolor="cyan">
<h1 style="color: Black; text-align: center ;"><i> Hello my name is Vaibhav
kumar. </i></h1>
<blockquote> Here is a list of some of my friends and if you click on any of their
name you will be redirected to their info page. Happy surfing. </blockquote>
<ol>
<li><a href="file:///D:/outputs%20html/html6(2).html" target="_blank"> Friend 1
</a></li>
<li><a href="file:///D:/outputs%20html/html(3).html" target="_blank"> Friend 2
</a></li>
<li><a href="file:///D:/outputs%20html/html(4).html" target="_blank"> Friend 3
</a></li>
</ol>
</body>
</html>
(Friend 1)
<html>
<head>
<title>
Friend 1
</title>
<body bgcolor="green">
<h1 style="color: white;"> Hello my name is Aman. </h1>
<p style="color: white;"> I am 21. <br> I am pursuing BA program from SOL.
<br> I want to become IFS officer. </p>
</body>
</head>
</html>
(Friend 2)
<html>
<head>
<title>
Friend 2
</title>
<body bgcolor="orange">
<h1> Hello my name is Amit. </h1>
<p> I am 21 yearsold. <br> I am IPS aspirant. <br> I am a dog lover. </p>
</body>
</head>
</html>
(Friend 3)
<html>
<head>
<title>
Friend 3
</title>
<body bgcolor="yellow">
<h1> Hello my name is Mayank. </h1>
<p style="background-color: blue; color: whitesmoke;"> I am 20 years old. <br> I
am in CS engineering. <br> I am single. </p>
</body>
</head>
</html>
Output:-
Practical – 7
Aim :-
Write HTML code to insert three images that are aligned left, center and right.
Also change the background color as blue of the web page. Give a proper heading
to the web page.
Source Code :-
<!DOCTYPE html>
<html>
<head>
<title> Practical 7 </title>
</head>
<body bgcolor="blue">
<h1 style="color:wheat; text-align: center;"> Inserting images in HTML </h1>
<p style="background-color: orange;"><b> The next image is aligned to left.
</b></p>
<img src="jett.jpg" alt="AGENT JETT" height="110px" width="110px">
<br>
Output : -
Practical – 8
Aim :-
Write code to display the name of courses taught in the institute under the list
headings Morning and Evening Courses respectively using different type of
unordered list.
Source Code : -
<!DOCTYPE html>
<html>
<head>
<title>
Practical 8
</title>
</head>
<body>
<h1> Courses offered by IITM Janak Puri </h1>
<ul type = "circle">
<li><h3> Morning </h3></li>
<ul type = "disc">
<li> MCA </li>
<li> MBA </li>
<li> BBA </li>
</ul>
<li><h3> Evening </h3></li>
<ul type = "square">
<li> BCA </li>
<li> B.com </li>
</ul>
</ul>
</body>
</html>
Output : -
Practical – 9
Aim : -
Design an HTML website for displaying different courses offered by the
university using ordered lists.
Source Code : -
<!DOCTYPE html>
<html>
<head>
<title> Practical 9 </title>
</head>
<body>
<h1> Courses offered by IP University </h1>
<h3>Engineering</h3>
<ol type="1">
<li> B.Arch </li>
<li> BCA </li>
<li> Civil Engineering </li>
<li> Computer Science Engineering</li>
<li> Electrical and Electronics Engineering </li>
<li> Electronics and Communication Engineering </li>
<li> Information Technology </li>
<li> MCA </li>
<li> Mechanical Engineering </li>
<li> Mechanical and Aerospace Engineering </li>
<li> Mechatronics Engineering </li>
<li> Tool Engineering </li>
</ol>
Source Code : -
(Main Page)
<!DOCTYPE html>
<html>
<head>
<title> Practical 12 </title>
</head>
<body>
<table border="2">
<tr>
<th> House <br> Types </th>
<th> Decor </th>
<th> Rooms </th>
</tr>
<tr>
<td> Villas </td>
<td><ol type="1">
<li><a href="file:///D:/outputs%20html/html12(4).html" target="_blank"> Dining
Room </a></li>
<li><a href="file:///D:/outputs%20html/html12(1).html" target="_blank"> Master
Bed Room </a></li>
<li><a href="file:///D:/outputs%20html/html12(2).html"target="_blank"> Kid's
Room </a></li>
<li><a href="file:///D:/outputs%20html/html12(3).html"target="_blank"> Kitchen
</a></li>
</ol>
</td>
<td> 4 BHK </td>
</tr>
<tr>
<td> Mansions </td>
<td><ol type="1">
<li><a href=""> Dining Room </a></li>
<li><a href=""> Master Bed Room </a></li>
<li><a href=""> Kid's Room </a></li>
<li><a href=""> Kitchen </a></li>
</ol>
</td>
<td> 5 BHK </td>
</tr>
<tr>
<td> Flats </td>
<td>
<ol type="1">
<li><a href=""> Single Bedroom </a></li>
<li><a href=""> Double Bedroom </a></li>
</ol>
</td>
<td>1BHK <br>2BHK </td>
</tr>
</table>
</body>
</html>
(Dining)
<!DOCTYPE html>
<html>
<head>
<title> Practical 12(i) </title>
</head>
<body>
<h2> Villa Dinning room </h2>
<img src="dining room.jpg" alt="dining room"height="500px" width="500px">
<br>
<blockquote><b> Your family love this dining room. </b></blockquote>
</body>
</html>
(Villas)
<!DOCTYPE html>
<html>
<head>
<title> Practical 12(ii) </title>
</head>
<body>
<h2> Villa master bedroom </h2>
<img src="villa master bedroom.jpg" alt="master bedroom">
<blockquote><b> Grab a chance to have your best power nap in this bedroom.
</b></blockquote>
</body>
</html>
(Mansion)
<!DOCTYPE html>
<html>
<head>
<title> Practical 12(iii) </title>
</head>
<body>
<h2> Villa Kids Bedroom </h2>
<img src="Villa Kids Bedroom.jpg" alt="Kids bedroom">
<blockquote><b> Your kids will love this bedroom. As they will get a lot of free
space to play here. </b></blockquote>
</body>
</html>
(Flat)
<!DOCTYPE html>
<html>
<head>
<title> Practical 12(iv) </title>
</head>
<body>
<h2> Villa Kitchen </h2>
<img src="Villa Kitchen.jpg" alt="Kitchen">
<blockquote><b> Give your wife a chance to cook here in this kitchen. She would
never want to leave this kitchen. </b></blockquote>
</body>
</html>
Output : -
Practical – 13
.
Aim : -
Write a JavaScript to accept your name and display it
Source Code:
<html>
<head>
<script>
var name = window.prompt("Enter your name: ");
alert("Your name is " + name);
</script>
</head>
</body>
</html>
Output:
Practical – 14
Aim : -
Write a JavaScript code to accept 10 numbers and check how many are +ive, -ive
and zero
Source Code:
<html>
<head>
<title>Program</title>
</head>
<body>
<script>
var n = new Array(10);
var i;
for (i = 0; i < 10; i++)
{
n[i]=prompt("Enter numbers:","Enter one at a time...");
}
document.write("Zero numbers : "+"<br>");
for (i = 0; i < 10; i++)
{
if(n[i]==0)
{
document.write(n[i]+"<br>");
}
}
document.write("Positive numbers"+"<br>");
for (i = 0; i < 10; i++)
{
if(n[i]>0)
{
document.write(n[i]+"<br>");
}
}
document.write("Negative number : "+"<br>");
for (i = 0; i < 10; i++)
{
if(n[i]<0)
{
document.write(n[i]+"<br>");
}
}
</script>
</body>
</html>
Output:
Practical – 15
Aim : -
Write a Program in JavaScript to find the factorial of a number between 1 to 10
Output should be like as given below: -
Factorial of 1
is: 1
Factorial of 2 is:
2
:::::::::::::::::::::::::
::::::::::::::::::::::::::
::::::::::::::::::::::::::
factorial of 10 is
:
Source Code:
<html>
<head>
<title>Program</title>
</head>
<body>
<script>
var a;
a=prompt("Enter your number :","Enter!!");
if(a>0 && a<=10)
{
var i=1;
var f=a;
while(a>0)
{
i=a*i;
a--;
}
alert("Factorial of"+f+", is "+i);
}
else
alert("Please Enter a number between 1 and 10");
</script>
</body>
</html>
Output:
Practical – 16
Aim : -
Write a Program in JavaScript to find reverse of a digit
Source Code:
<html>
<head>
<title>Reverse</title>
</head>
<body>
<script>
var a =prompt("enter a number :","enter here...");
var b=a;
var c;
var d=0;
while(b>0)
{
c=b%10;
d=d*10+c;
b=Math.floor(b/10);
}
document.write("reverse of "+a +"is "+d);
</script>
</body>
</html>
Output:
Practical – 17
Aim : -
Write a JavaScript code block, which greets a user with a message Welcome’.
When a user leaves this page, the ‘Good-bye’ alert dialog box is displayed
Source Code:
<HTML>
<HEAD>
<TITLE>Example 5.1</TITLE>
</HEAD>
<BODY onLoad="alert('Welcome to my page!');"
onunload="console.log('bye')">
</BODY>
</HTML>
Output:-
Practical – 18
.
Aim : -
Write a script that displays the various Math & String Functions
Source Code:
<html>
<body>
<p id="abs_demo"></p>
<script>
functiongfg() {
var geek = Boolean(1);
var geeks = Boolean(0);
var string =
String(geek) + "<br>" +
String(geeks);
document.write(string);
}
gfg();
document.getElementById("abs_demo").innerHTML = Math.abs(-5.6);
</script>
</body>
</html>
Output:
Practical – 19
.
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
Source Code:
<html>
<body>
<p id="p2"></p>
<p id="p3"></p>
<script type="text/javascript">
var date = new Date('2021-04-10T10:12:50.5000z');
Practical – 20
.
Aim : -
Write a CSS rule that make all text size as 18pt and color as red, background color
blue. Give the heading style font size as 24pt, font family as sans-serif,color black
and text align as Centre.
Source Code:
<html>
<head>
<style>
p{
background-color: lightblue;
color:red;
font-size:18pt
}
h1 {
color: black;
text-align: center;
font-size: 24pt;
font-family: sans-serif;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output:
Practical – 21
.
Aim : -Write a CSS rule for EM, H1 and P elements. Create Class attributes that
applies a style class and inheritance
Source Code:
<html>
<head>
<style>
.main {
color: rebeccapurple;
border: 2px solid #ccc;
padding: 1em;
}
.special {
color: black;
font-weight: bold;
}
p{
background-color: lightblue;
color:red;
font-size:18pt
}
h1 {
color: black;
text-align: center;
font-size: 24pt;
font-family: sans-serif;
</style>
</head>
<body>
<h1>Inheritance</h1>
<ul class="main">
<li>Item One</li>
<li>Item Two
<ul>
<li>2.1</li>
<p>two point 1<p>
<li>2.2</li>
<p>two point 2<p>
</ul>
</li>
<li>Item Three
<ul class="special">
<li>3.1
<ul>
<li>3.1.1</li>
<li>3.1.2</li>
</ul>
</li>
<li>3.2</li>
</ul>
</li>
</ul>
</body>
</html>
Output:
Practical – 22
Aim : -
Write a program to show the conflicting style
Source Code:
<html>
<head>
<style>
.box{
color:blue;
background-color:green;
width:150px;
height:150px;
}
.box{
color:yellow;
font-size:3em;
}
</style>
</head>
<body>
<div class ="box">I am a box</div>
</body>
</html>
Output:
Practical - 23
Aim:-
Create a site of Solar System and insert an image of planets and position the style
as absolute and give proper margins as top, left, right and bottom.
Source Code:
<html>
<head>
<title>Solar System
</title>
</head>
<body bgcolor="black">
<img src="Sun.jpg"
style="position:absolute;
height: 200;
width: 200;
top: 100px;
left: 50px;">
<img src="mercury.jpg"
style="position:absolute;
height: 60; width: 60;
top: 90px; left: 300px;">
<img src="venus.jpg"
style="position:absolute;
height: 80;
width: 80;
top: 120px;
left: 450px;">
<img src="earth.jpg"
style="position:absolute;
height: 100; width: 100;
top: 130px; left: 600px;">
<img src="mars.jpg"
style="position:absolute;
height: 95;
width: 95;
top: 150px;
left: 750px;">
<img src="jupiter.jpg"
style="position:absolute;
height: 150;
width: 150;
top: 350px;
left: 960px;">
<img src="saturn.jpg"
style="position:absolute;
height: 140;
width: 140;
top: 400px;
left: 1150px;">
<img src="neptune.jpg"
style="position:absolute;
height: 130;
width: 130;
top: 350px;
left: 1450px;">
</body>
</html>
Output:-
Practical –24
Aim:-
Create a web page, which applies the invert filter to an image, glow filter to a
hyperlink.
Source Code:-
<!DOCTYPE html>
<html>
<head>
<title> Filter </title>
</head>
<body>
<style>
img.b {
filter: invert(75%);
}
a.glow:hover, a.glow:focus
{
color: #DC143C;
text-shadow: -1px 1px 8px #ffc, 1px -1px 8px #fff;
}
</style>
<img class="b" src="C:\Users\Bhaskar\Pictures\Saved Pictures\jett.jpg" alt="jett"
height="290px" width="500px" >
<a href="Quer.com" class="glow">Glowing Link</a>
</body>
</html>
Output:-
Practical 25
Aim:-
Write a CSS rule that set the three box dimension and align the text. The first box
should be 20%, second division should be 80% and centre aligns. And in the third
division give a proper height and width.
Source Code:
<html>
<head>
<style type="text/css">
.box
{
width: 20%; heigth:20%;
color: green; font-size:34; padding: 10px; border: 12px white; margin:12;
align: center;
}
.box1
{
width: 80%;
height:80%;
color:orange; font-size:20;
padding: 10px;
border: 15px dotted white; margin: 15px; text-align:left;
}
.box2
{
width: 50%; height: 50%; color:cyan; font-size:20; padding: 10px; border: 5px
purple; margin: 10px;
text-align:center; }
</style>
</head>
<body bgcolor="Cyan">
<div class="box"> My Website </div>
<div class="box1"> ABOUT: <br><br>
<font color="red" size="6"> Tricksters
</div>
<div class="box2">
<font color="red" size="7"> <p>Bca evening </p> </div>
</body>
</html>
Output:
Practical –26
Aim : -
Create a web page, which attaches two filters to the object. The first causes the
image to blur over a specified number of pixels. The second filter flips the image
vertically.
Source Code : -
<!DOCTYPE html>
<html>
<head>
<title> Filter </title>
</head>
<body>
<style>
img.a {
filter: blur(3px);
}
img.b {
transform: scaleY(-1);
}
</style>
<img class="a" src="battlefield.jpg" alt="battlefield" height="290px"
width="500px">
<img class="b" src="battlefield.jpg" alt="battlefield" height="290px"
width="500px" >
</body>
</html>
Output : -
Practical –27
Aim : -
Using Alpha filter change the content by changing the Opacity property.
Source Code : -
<!DOCTYPE html>
<html>
<head>
<style>
div {
background-color: red;
opacity: 0.5;
}
</style>
</head>
<body>
<h1>The opacity Property</h1>
<div>The following div element's opacity is 0.5</div>
</body>
</html>
Output : -
Practical 28
Aim:-
Using transition's apply and play method freezes the appearance of an object and
then invokes the transition.
Source Code:-
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
transition: width 2s;
}
div:hover {
width: 300px;
}
</style>
</head>
<body>
<h1>The transition Property</h1>
<p>Hover over the div element below, to see the transition effect:</p>
<div></div>
</body>
</html>
Output:-
Practical –29
Aim : -
Create a web page, which prompts a user to enter a colour, then sets the
background Colour to that value.
Source Code : -
<!DOCTYPE html>
<html>
<head>
<title>Change the Background Color with JavaScript</title>
<script>
function changeBodyBg(color){
document.body.style.background = color;
}
</script>
</head>
<body>
<div>
<label>Change Webpage Background To:</label>
<button type="button" onclick="changeBodyBg('yellow');">Yellow</button>
<button type="button" onclick="changeBodyBg('lime');">Lime</button>
<button type="button" onclick="changeBodyBg('orange');">Orange</button>
</div>
</body>
</html>
Output : -
Practical –30
Aim : -
Insert an image to a web page and display its co-ordinates on a mouse move.
Source Code : -
<html>
<head>
<script>
function coordinate(event) {
var x = event.clientX;
var y = event.clientY;
document.getElementById("X").value = x;
document.getElementById("Y").value = y;
}
</script>
</head>
<body onmousemove="coordinate(event)">
<img src="valorant.jpg" alt="valorant" height="290px" width="500px">
<p>
X-coordinate
<input type="text" id="X">
<br>
<br>
Y-coordinate
<input type="text" id="Y">
</body>
</html>
Output : -
Practical –31
Aim : -
Create a web page, which shows Rollover effects.
Source Code : -
<!DOCTYPE html>
<html>
<head>
<title>Rollover Image Effect in Html</title>
</head>
<body>
<h2>Rollover Image Effect in Html</h2>
<img src="viper.jpg" height="290px" width="500px"
onmouseover="this.src='valo.jpg'" height="290px" width="500px"
onmouseout="this.src='viper.jpg'" height="290px" width="500px" />
</body>
</html>
Output : -
Practical –32
Aim : -
Write an external linking style sheet to Create a website which show the different
courses in your institute.
Source Code : -
(Main Page)
<html>
<head><title>Div Tag Example</title>
</head>
<style>
.container{
background-color:#d1d1d1;
margin:30px;
padding:20px;
min-height:700px;
}
.header{
background-color: #C7C3F2;
color: #060230;
text-align: center;
font-size: 30px;
min-height: 100px;
padding: 20px;
}
.main
{
font-size: 20px;
text-align: center;
color: #054D54
min-height: 400px;
}
.about{
color:#A60E3E;
}
.para{
color:#357E08;
}
.myhr
{height:3px;
background-color:#3F0B69;
}
.footer{
background-color:#056670;
color:#09DEF4;
text-align:center;
min-height: 70px;
padding: 50px;
font-size:20px;
}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
<body>
<div class="container">
<div class="header">
The Institute takes pride in having developed the faculty support and
infrastructure imperative to effectively implement<br>
the ‘Outcome Based Education’, a technology-based learner centric and result-
oriented approach which enhances<br>
students' learning and performance capabilities. We are passionate about
grooming the nation’s youth to grow into <br>
excellent professionals and good human beings destined to become torch bearers
of their respective domains.<br>
The BCA programme is divided into six semesters, each semester comprises five
theory and three practical subjects. The fifth and sixth semesters expose students
to industrial training and a project, essentially an experiential leaning excercise,
respectively. <br>
Eligibility Criteria<br>
Passed 12th Class of 10+2 of CBSE or equivalent with a minimum of 50% marks in
aggregate with pass in English (core or elective or functional) and Mathematics or
Computer Science/Informatics Practice/Computer Applications.<br>
or<br>
(MCA)
<html>
<head><title>Div Tag Example</title>
</head>
<style>
.container{
background-color:#d1d1d1;
margin:30px;
padding:20px;
min-height:700px;
}
.header{
background-color: #C7C3F2;
color: #060230;
text-align: center;
font-size: 30px;
min-height: 100px;
padding: 20px;
}
.main
{
font-size: 20px;
text-align: center;
color: #054D54
min-height: 400px;
}
.about{
color:#A60E3E;
}
.para{
color:#357E08;
}
.myhr
{height:3px;
background-color:#3F0B69;
}
.footer{
background-color:#056670;
color:#09DEF4;
text-align:center;
min-height: 70px;
padding: 50px;
font-size:20px;
}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
<body>
<div class="container">
<div class="header">
<h1 align="center">Master of Computer Application(MCA)</h1>
</div>
<div class="main">
<p class="para">
<p>
</p>
<p>
Overview<br>
The three-year MCA programme is affiliated to Guru Gobind Singh Indraprastha
University. The Programme inculcates essential skills demanded by the global
software industry through an interactive learning process. These include : thinking
skills and team-building skills imparted through audio-visual presentations and
personality development programmes. The norms and standards for delivery of
the course are as laid down by the All India Council of Technical Education
(AICTE), Ministry of HRD, Government of India.<br>
The MCA Programme is spread over six semesters(15-weeks each), the first four
of which are devoted to foundation courses across core areas of Computer
Applications. An elective subject is offered in the fifth semester followed by an
Industrial Training Programme in the sixth semester.Over and above this, each
semester has a ‘General Proficiency’ paper which allows the students to delve
into subjects beyond the laid down syllabi.<br>
Eligibility Criteria<br>
Bachelor's Degree of a Recognised University in any discipline with at least 50%
marks in aggregate and must also have passed Mathematics and English at least
at the Senior School Certificate Examination (Class XII) of the CBSE or any other
Examination recognized as equivalent thereto.<br>
or<br>
or<br>
(BBA)
<html>
<head><title>Div Tag Example</title>
</head>
<style>
.container{
background-color:#d1d1d1;
margin:30px;
padding:20px;
min-height:700px;
}
.header{
background-color: #C7C3F2;
color: #060230;
text-align: center;
font-size: 30px;
min-height: 100px;
padding: 20px;
}
.main
{
font-size: 20px;
text-align: center;
color: #054D54
min-height: 400px;
}
.about{
color:#A60E3E;
}
.para{
color:#357E08;
}
.myhr
{height:3px;
background-color:#3F0B69;
}
.footer{
background-color:#056670;
color:#09DEF4;
text-align:center;
min-height: 70px;
padding: 50px;
font-size:20px;
}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
<body>
<div class="container">
<div class="header">
<h1 align="center">Bachelor of Business Administration (BBA)</h1>
</div>
<div class="main">
<p class="para">
<p>
</p>
<p>
Overview<br>
The three-year BBA programme is affiliated to Guru Gobind Singh Indraprastha
University. It is designed to equip students with strong conceptual knowledge and
thinking skills to manage integrated business operations. <br>
The BBA programme is divided into six semesters, the first four of which are
devoted to foundation courses across core areas of Business Administration. The
fifth and sixth semesters expose students to industrial training and project based
learning respectively.<br>
Eligibility Criteria<br>
Passed 12th Class of 10+2 of CBSE or equivalent with a minimum of 50% marks in
aggregate and must also have passed English (core or elective or functional) as a
subject.<br>
</div>
<div class="footer">
<p>
©Institute of Information Technology & Management 2019
</div>
</div>
</body>
</html>
(MBA)
<html>
<head><title>Div Tag Example</title>
</head>
<style>
.container{
background-color:#d1d1d1;
margin:30px;
padding:20px;
min-height:700px;
}
.header{
background-color: #C7C3F2;
color: #060230;
text-align: center;
font-size: 30px;
min-height: 100px;
padding: 20px;
}
.main
{
font-size: 20px;
text-align: center;
color: #054D54
min-height: 400px;
}
.about{
color:#A60E3E;
}
.para{
color:#357E08;
}
.myhr
{height:3px;
background-color:#3F0B69;
}
.footer{
background-color:#056670;
color:#09DEF4;
text-align:center;
min-height: 70px;
padding: 50px;
font-size:20px;
}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
</style>
<body>
<div class="container">
<div class="header">
<h1 align="center">Master of Business Administration (MBA)</h1>
</div>
<div class="main">
<p class="para">
<p>
</p>
<p>
Overview<br>
The two-year MBA programme is affiliated to Guru Gobind Singh Indraprastha
University. It is designed to impart relevant knowledge, attributes and skills
necessary for a successful career in the corporate world. The programme not only
focuses on domain-specific enterprises but also equips the students with
leadership and entrepreneurial qualities which enable them to contribute
positively to the society at large. Some highlights of the student-centric pedagogy
at IITM are Summer Industrial Training, value added courses, added focus on
public speaking via presentations and group activities aimed at course
enrichment.<br>
The norms and standards for the delivery of the course are as laid down by the All
India Council of Technical Education (AICTE), Ministry of HRD, Government of
India. The MBA programme is spread over four semesters (15-weeks each), the
first two of which are devoted to foundation courses across core areas of Business
Administration. Students have to undergo a summer training after the second
semester, they are also offered elective subjects in the third and fourth
semesters.<br>
Duration<br>
2 Years<br>
Eligibility Criteria<br>
Bachelor's Degree of a Recognised University in any discipline with at least 50%
marks in aggregate.<br>
or<br>
or<br>