Web Assignment 2
Web Assignment 2
=> Design:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>fadding effects</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#b1").click(function(){
$("h2").fadeOut(1000);
});
$("#b4").click(function(){
$("h2").fadeIn(1000);
});
$("#b2").click(function(){
$("h2").fadeToggle(1000);
});
$("#b3").click(function(){
$("h2").fadeTo("slow",0.4);
});
});
</script>
<style>
body {
.d1{
font-size: large;
text-align: left;
padding-left : 50px;
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
li {
float: left;
a{
display: block;
color: black;
text-align: center;
font-size: large;
text-decoration: none;
a:hover {
font-size: large;
border-radius: 100px;
h3{
padding-left: 50px;
background-color: black;
color: darkred;
padding: 10px;
font-family: cursive;
button{
margin-left: 50px;
font-size: large;
background-color: #00ffff;
color: darkred;
border: none;
border-radius: 100px;
width: 150px;
button:hover {
background-color: white;
button:active {
background-color: purple;
transform: translateY(4px);
</style>
</head>
<body>
<div class="con">
<div class="box1">
<div class="head">
<h4>BCA I B.COM</h4>
<h4>Affiliated to VNSGU-SURAT</h4>
</div>
<img src="v2.webp">
</div>
<div class="nav">
<ul>
</ul>
</div>
<div class="d1">
<br><br><br>
<h3>
High demand for IT professionals: The IT industry is one of the fastest-growing industries
in the world, and there is a high demand for qualified IT professionals. A BCA degree can
• Good salary potential: IT professionals typically earn good salaries. With a BCA degree,
you can expect to earn a starting salary of around ₹30,000 to ₹40,000 per month in
India.
• Variety of career options: There are a wide variety of career options available to BCA
• Strong foundation for further studies: A BCA degree can also be a good foundation for
</h3>
<br><br>
<button id="b1">fade-Out</button>
<button id="b4">fade-In</button>
<button id="b2">fade-Toggle</button>
<button id="b3">fade-To</button>
</body>
</html>
=> Design:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>sliding effects</title>
<style>
body {
margin: 0px;
padding: 0px;
.d1{
font-size: large;
text-align: left;
padding-left : 50px;
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
li {
float: left;
a{
display: block;
color: white;
text-align: center;
font-size: large;
text-decoration: none;
a:hover {
font-size: large;
border-radius: 100px;
.p{
height: 52vh;
width: 50vw;
background: transparent;
backdrop-filter: blur(17px);
font-family: sans-serif;
font-size: 19px;
h3{
padding-left: 50px;
background-color: black;
color: darkred;
padding: 10px;
font-family: cursive;
button{
margin-left: 50px;
font-size: large;
background-color: purple;
color: white;
border: none;
border-radius: 100px;
width: 150px;
button:hover {
button:active {
background-color: purple;
transform: translateY(4px);
</style>
</head>
<body>
<div class="con">
<div class="box1">
<div class="head">
<h4>BCA I B.COM</h4>
<h4>Affiliated to VNSGU-SURAT</h4>
</div>
<img src="v2.webp">
</div>
<div class="nav">
<ul>
</ul>
</div>
<div class="con">
<div class="p">
<h3>
The salary for a BCA graduate can vary depending on their experience, skills, and
location. However, BCA graduates can expect to earn a starting salary of around
₹30,000 to ₹40,000 per month in India. With experience, BCA graduates can earn much
more.
To be eligible for a BCA program, you must have passed 10+2 or equivalent from a
</h3>
<br><br>
<button id="b1">slide-Up</button>
<button id="b2">slide-Down</button>
<button id="b3">slide-Toggle</button>
</div>
</div>
</body>
</html>
=> Design:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>registration page</title>
<style>
*{
margin: 0px;
padding: 0px;
body{
background: url('v2.jpeg');
.box{
height: 79vh;
width: 31vw;
border-radius: 10px;
background-color: ;
color: whitesmoke;
font-family: sans-serif;
.box h3{
cursor: pointer;
input{
text-align: center;
border-radius: 8px;
border: none;
button{
background-color: #4070F4;
border: none;
border-radius: 8px;
color: white;
font-size: 20px;
cursor: pointer;
.box p{
.box span{
color: #0032ba;
cursor: pointer;
margin-left: 2px;
.box h3:hover{
</style>
</head>
<body>
<div class="con">
<div class="box1">
<div class="head">
<h4>BCA I B.COM</h4>
<h4>Affiliated to VNSGU-SURAT</h4>
</div>
<img src="v2.webp">
</div>
<div class="nav">
<ul>
</ul>
</div>
<center>
<form>
<div>
<div class="box">
<h3>Registration</h3>
<br>
<br>
<br>
<br>
<br>
<br>
<button>Register Now</button>
</div>
</div>
</form>
</center>
</body>
</html>
=> Design
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JQuery events</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#h1").click(function(){
$("#h1").hide();
});
$("#h2").dblclick(function(){
$("#h2").hide();
});
$("#h3").mouseenter(function(){
$("#h3").css("background","yellow");
$("#h3").css("color","black");
});
$("#h4").mouseleave(function(){
$("#h4").css("background","yellow");
$("#h4").css("color","black");
});
$("#h5").mousedown(function(){
$("#h5").css("background","yellow");
$("#h5").css("color","black");
});
$("#h6").mouseup(function(){
});
$("#h7").hover(function(){
$("#h7").css("background","yellow");
$("#h7").css("color","black");
},
function(){
$("#h7").css("background","purple");
$("#h7").css("color","white");
});
});
</script>
<style>
body {
margin: 0px;
padding: 0px;
.navbar {
background-color: purple;
.d1{
font-size: large;
text-align: left;
padding-left : 50px;
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
li {
float: left;
a{
display: block;
color: white;
text-align: center;
font-size: large;
text-decoration: none;
h3{
padding-left: 50px;
background-color: purple;
color: white;
padding: 10px;
button{
margin-left: 50px;
font-size: large;
background-color: purple;
color: white;
border: none;
border-radius: 100px;
width: 150px;
button:hover {
button:active {
background-color: purple;
transform: translateY(4px);
</style>
</head>
<body>
<div class="con">
<div class="box1">
<div class="head">
<h4>BCA I B.COM</h4>
<h4>Affiliated to VNSGU-SURAT</h4>
</div>
<img src="v2.webp">
</div>
<div class="nav">
<ul>
</ul>
</div>
<h3 id="h1">
click()<br>
The function is executed when the user clicks on the HTML element.<br>
</h3>
<hr>
<h3 id="h2">
dblclick()<br>
The function is executed when the user double-clicks on the HTML element.<br>
If you double click this paragraph then it will disappear from here.<br>
</h3>
<hr>
<h3 id="h3">
mouseenter()<br>
The function is executed when the mouse pointer enters the HTML element.<br>
</h3>
<hr>
<h3 id="h4">
mouseleave()<br>
element.<br>
The function is executed when the mouse pointer leaves the HTML element.<br>
When the mouse leave this paragraph, the paragraph will be highlight.
</h3>
<hr>
<h3 id="h5">
mousedown()<br>
element.<br>
The function is executed, when the left, middle or right mouse button is pressed down,
When you press down the mouse button on this paragraph it will show the pop-up
</h3>
<hr>
<h3 id="h6">
mouseup()<br>
The function is executed, when the left, middle or right mouse button is released, while
</h3>
<hr>
<h3 id="h7">
hover()<br>
The hover() method takes two functions and is a combination of the mouseenter() and
mouseleave() methods.<br>
The first function is executed when the mouse enters the HTML element, and the
second function is executed when the mouse leaves the HTML element.<br>
When you put the pointer of the mouse the paragraph will highlight and when you leave
</h3>
<hr>
</body>
</html