0% found this document useful (0 votes)
9 views70 pages

Web Technologies

Uploaded by

Utkarsh Miglani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views70 pages

Web Technologies

Uploaded by

Utkarsh Miglani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 70

PRACTICAL FILE

OF
Web Based Programming
BCA 1 semester
st

Course code: BCA-104


Session: 2023-26

SUBMITTED TO: SUBMITTED BY:


Uttkarsh Miglani
Ms.Sumit Chauhan Roll No:02435102023

Page | 1
INDEX
S.
List of Programs Sign
No.

1 JavaScript Program to Print Hello World

JavaScript Program to Find the Factorial


2
of a Number
JavaScript Program to Find the greatest of
3
3 Numbers
JavaScript Program to display the usage of
4
all 3 dialog boxes.
JavaScript Program to Call function code
5
from links
JavaScript Program to Call function code
6
from image-maps.
JavaScript Program to Find square of a
7
Number
JavaScript Program to Find square root of
8
a Number
JavaScript Program to show the usage of
9
date functions
JavaScript Program to show the usage of
10
string functions
JavaScript Program to implement event
11 handling onclick, onmouseover,
onmouseout events.
Page | 2
Program to show the usage of inline CSS
12
using font styling
Program to show the usage of external
13
CSS using text styling
Program to show the usage of internal
14
CSS using text styling
Program to show the usage of inline CSS
15 using text styling.
Make a web page for Crime against Poor
Community?
16 Link few more pages to the developed
page, containing information about Crime
and Steps
At this step of web page development add
17
tables by using its different attributes.
Develop a web page by adding frames and
18
showcase its different features.

Page | 3
PROGRAM-1
JavaScript Program to Print Hello World.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello World Example</title>
</head>
<body>

<script>
document.write("Hello, World!");
</script>

</body>
</html>

Page | 4
OUTPUT

Page | 5
PROGRAM-2
JavaScript Program to Find Factorial of Number.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Factorial Calculator</title>
</head>
<body>

<script>
function calculateFactorial(number) {
if (number === 0 || number === 1) {
return 1;
} else {
return number * calculateFactorial(number - 1);
}
}

var numberToCalculate = 5;
var factorialResult = calculateFactorial(numberToCalculate);

Page | 6
document.write("Factorial of " + numberToCalculate + " is: " + factorialResult);
</script>

</body>
</html>

Page | 7
OUTPUT

Page | 8
PROGRAM-3
JavaScript Program to Find the greatest of 3 Number.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Greatest of Three Numbers</title>
</head>
<body>

<script>
function findGreatestNumber(num1, num2, num3) {
if (num1 >= num2 && num1 >= num3) {
return num1;
} else if (num2 >= num1 && num2 >= num3) {
return num2;
} else {
return num3;
}
}

Page | 9
var number1 = 3;
var number2 = 7;
var number3 = 5;

var greatestNumber = findGreatestNumber(number1, number2, number3);


document.write("The greatest number among " + number1 + ", " + number2 + ",
and " + number3 + " is: " + greatestNumber);
</script>

</body>
</html>

Page | 10
OUTPUT

Page | 11
PROGRAM-4
JavaScript Program to Display the usage of all 3 dialog
boxes.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dialog Boxes Example</title>
</head>
<body>

<script>

alert("This is an alert dialog box. Click OK to continue.");

var userInput = prompt("Enter your name:", "John Doe");


if (userInput !== null) {
alert("Hello, " + userInput + "! Welcome to the dialog boxes example.");
} else {
alert("You clicked Cancel in the prompt dialog box.");
}

Page | 12
var confirmation = confirm("Do you want to proceed?");
if (confirmation) {
alert("You clicked OK in the confirm dialog box. Proceeding...");
} else {
alert("You clicked Cancel in the confirm dialog box. Canceling...");
}
</script>

</body>
</html>

Page | 13
OUTPUT

Page | 14
PROGRAM-5
JavaScript Program to Call Function code from links.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Function Call from Links</title>
</head>
<body>

<!-- Links that trigger JavaScript functions -->


<a href="#" onclick="sayHello()">Say Hello</a>
<a href="#" onclick="calculateSum()">Calculate Sum</a>

<!-- Display area for results -->


<div id="result"></div>

<script>

function sayHello() {
document.getElementById("result").innerHTML = "Hello, World!";

Page | 15
}

function calculateSum() {
var num1 = prompt("Enter the first number:");
var num2 = prompt("Enter the second number:");

if (isNaN(num1) || isNaN(num2)) {
alert("Please enter valid numbers.");
} else {
var sum = parseFloat(num1) + parseFloat(num2);
document.getElementById("result").innerHTML = "The sum is: " + sum;
}
}
</script>

</body>
</html>

Page | 16
OUTPUT

Page | 17
PROGRAM-6
JavaScript Program to Call Function code from Image-
maps.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Function Call from Image Maps</title>
</head>
<body>

<!-- Image with an image map -->


<img src="opop.jpeg" alt="Image Map" usemap="#functionMap">

<!-- Define the image map -->


<map name="functionMap">
<!-- Define an area for saying hello -->
<area shape="rect" coords="0,0,50,50" alt="Say Hello" onclick="sayHello()">
<!-- Define an area for calculating sum -->
<area shape="rect" coords="50,0,100,50" alt="Calculate Sum"
onclick="calculateSum()">

Page | 18
</map>

<!-- Display area for results -->


<div id="result"></div>

<script>
function sayHello() {
document.getElementById("result").innerHTML = "Hello, World!";
}

function calculateSum() {
var num1 = prompt("Enter the first number:");
var num2 = prompt("Enter the second number:");

if (isNaN(num1) || isNaN(num2)) {
alert("Please enter valid numbers.");
} else {
var sum = parseFloat(num1) + parseFloat(num2);
document.getElementById("result").innerHTML = "The sum is: " + sum;
}
}
</script>
</body>
</html>

Page | 19
OUTPUT

Page | 20
Page | 21
PROGRAM-7
JavaScript Program to find square of a number.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Square of a Number</title>
</head>
<body>
<script>
function findSquare(number) {
return number * number;
}

var numberToSquare = 7;
var squareResult = findSquare(numberToSquare);

document.write("The square of " + numberToSquare + " is: " + squareResult);


</script>
</body>
</html>

Page | 22
OUTPUT

Page | 23
PROGRAM-8
JavaScript Program to find square root of a number.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Square Root of a Number</title>
</head>
<body>
<script>
function findSquareRoot(number) {
return Math.sqrt(number);
}
var numberToFindSquareRoot = 25;
var squareRootResult = findSquareRoot(numberToFindSquareRoot);
document.write("The square root of " + numberToFindSquareRoot + " is: " +
squareRootResult);
</script>

</body>
</html>

Page | 24
OUTPUT

Page | 25
PROGRAM-9
JavaScript Program to show the usage of date functions.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Date Functions Example</title>
</head>
<body>
<script>
var currentDate = new Date();
document.write("Current Date and Time: " + currentDate + "<br>");
var currentYear = currentDate.getFullYear();
document.write("Current Year: " + currentYear + "<br>");
var currentMonth = currentDate.getMonth();
document.write("Current Month (0-11): " + currentMonth + "<br>");
var currentDay = currentDate.getDate();
document.write("Current Day of the Month: " + currentDay + "<br>");
var currentDayOfWeek = currentDate.getDay();
document.write("Current Day of the Week (0-6): " + currentDayOfWeek +
"<br>");

Page | 26
var currentHour = currentDate.getHours();
document.write("Current Hour (0-23): " + currentHour + "<br>");
var currentMinute = currentDate.getMinutes();
document.write("Current Minute (0-59): " + currentMinute + "<br>");
var currentSecond = currentDate.getSeconds();
document.write("Current Second (0-59): " + currentSecond + "<br>");
</script>
</body>
</html>

Page | 27
OUTPUT

Page | 28
PROGRAM-10
JavaScript Program to show the usage of string functions.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>String Functions Example</title>
</head>
<body>
<script>
var sampleString = "Hello, World!";
document.write("Original String: " + sampleString + "<br>");
var uppercaseString = sampleString.toUpperCase();
document.write("Uppercase String: " + uppercaseString + "<br>");
var lowercaseString = sampleString.toLowerCase();
document.write("Lowercase String: " + lowercaseString + "<br>");
var stringLength = sampleString.length;
document.write("String Length: " + stringLength + "<br>");
var substring = sampleString.substring(0, 5);
document.write("Substring (0-4): " + substring + "<br>");
var indexOfWorld = sampleString.indexOf("World");
Page | 29
document.write("Index of 'World': " + indexOfWorld + "<br>");
var replacedString = sampleString.replace("World", "Universe");
document.write("Replaced String: " + replacedString + "<br>");
var additionalString = " Have a great day!";
var concatenatedString = sampleString.concat(additionalString);
document.write("Concatenated String: " + concatenatedString + "<br>");
</script>
</body>
</html>

Page | 30
OUTPUT

Page | 31
PROGRAM-11
JavaScript Program to implement event handling onclick,
onmouseover, onmouseout events.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event Handling Example</title>
<style>
#myElement {
width: 200px;
height: 100px;
background-color: lightblue;
text-align: center;
line-height: 100px;
cursor: pointer;
}
</style>
</head>
<body>

Page | 32
<div id="myElement" onclick="handleClick()"
onmouseover="handleMouseOver()" onmouseout="handleMouseOut()">
Click me!
</div>

<script>
function handleClick() {
alert("Element clicked!");
}
function handleMouseOver() {
document.getElementById("myElement").style.backgroundColor =
"lightgreen";
document.getElementById("myElement").innerHTML = "Mouse over!";
}
function handleMouseOut() {
document.getElementById("myElement").style.backgroundColor =
"lightblue";
document.getElementById("myElement").innerHTML = "Mouse out!";
}
</script>

</body>
</html>

Page | 33
OUTPUT

Page | 34
PROGRAM-12
Program to show the usage of inline CSS using font
styling.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inline CSS Example</title>
</head>
<body>
<p style="font-family: 'Arial', sans-serif; font-size: 18px; color: #333; font-weight:
bold; text-align: center;">
This is a text with inline CSS for font styling.
</p>

</body>
</html>

Page | 35
OUTPUT

Page | 36
PROGRAM-13
Program to show the usage of external CSS using text
styling.

HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>External CSS Example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>This is a Heading</h1>

<p>
This is a paragraph with text styling using external CSS.
</p>

</body>
</html>

Page | 37
CSS
body {
font-family: 'Arial', sans-serif;
font-size: 16px;
color: #333;
}

h1 {
font-size: 24px;
color: #0066cc;
}

p{
font-size: 18px;
font-weight: bold;
}

Page | 38
OUTPUT

Page | 39
PROGRAM-14
Program to show the usage of inline CSS using text
styling.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inline CSS Example</title>
</head>
<body>
<h1 style="font-size: 24px; color: #0066cc;">This is a Heading</h1>

<p style="font-size: 18px; font-weight: bold;">


This is a paragraph with inline CSS for text styling.
</p>

</body>
</html>

Page | 40
OUTPUT

Page | 41
PROGRAM-15
Make a Simple web page containing almost all the tags of
HTML ?
<!DOCTYPE html>
<html>
<head>
<title>UTTKARSH MIGLANI</title>
</head>
<body>
<h1>This is a Heading 1</h1>
<h2>This is a Heading 2</h2>
<p>This is a paragraph</p>
<a href="https://www.google.com">This is a link(CLICK HERE)</a>
<ul>
<li>Unordered List</li>
<li>Unordered List</li>
</ul>
<ol>
<li>Ordered List Item</li>
<li>Ordered List Item</li>
</ol>
<img src="opop.png"HEIGHT="10"WIDTH="10" alt="An image">
<table>
<tr>
<th>Header</th>
<th>Header</th>
</tr>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>

Page | 42
<td>Row 2, Cell 2</td>
</tr>
</table>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name">
<input type="submit" value="Submit">
</form>
</body>
</html>

Page | 43
OUTPUT

Page | 44
PROGRAM-16
Make a web page for Crime against Poor Community?
Link few more pages to the developed page, containing
information about Crime and Steps
taken by the Government. (Use HTML tags to make a Static web page.

<html>
<title>
Crime Against Poor Community
</title>
<body>
<BODY BGCOLOR="green"TEXT="white" LEFTMARGIN="10" TOPMARGIN="10">
<BODY TEXT="RED">
<CENTER><H1>Crime Against Poor Community</H1></CENTER>
<center><IMG SRC="11.JPG"HEIGHT="50%"WIDTH="30%"></center>
<style>
h1{color:red;}
h4{color:orange;}
h3{color:green;}
h2{color:yellow;}
</style>
<h2>What is Crime against poor Community?</h2>
<p>Crimes against poor communities can take various forms,
often exacerbating the challenges and vulnerabilities
already faced by these communities. Some common examples include:
<ul>
<li>1. Violent Crimes</li>
<li>2. Property Crimes</li>
<li>3. Economic Crimes</li>
<li>4. Crimes against Children</li>
<li>5. Drug-Related Crimes</li>
<li>6. Environmental Crimes</li>
<li>7. Social Crimes</li>
<li>8. Cybercrimes</li>
</ul></p></center>
Page | 45
<h2>1. Violent Crimes:</h2>
<CENTER><IMG SRC="2.JPG"HEIGHT="30%"WIDTH="30%"></CENTER>
<p><ul>
<li><strong><i><u>Assault:</i></u></strong> Physical attacks can be
more prevalent in economically disadvantaged areas due to various factors,
including lack of resources for conflict resolution and tension arising
from economic stress.</li>
<br>
<LI><strong><i><u>Homicide:</i></u></strong> Poor communities
may have higher rates of homicides,
often related to gang violence, disputes, or other socio-economic
factors.</LI>
<br>
<li><strong><i><u>Use of Force or Threats:</i></u></strong> Violent
crimes involve the use of physical force or the threat of physical force against a
victim.
This force can cause harm, injury, or even death to the victim.</li>
<br>
<li><strong><i><u>Intent:</i></u></strong>Perpetrators of violent
crimes usually have the intent to cause harm or fear in the victim.
Unlike accidents or negligent behavior, violent crimes are intentional
acts.</li>
<br>
<li><strong><i><u>Victimization:</strong></i></u>Violent crimes
directly victimize individuals. The victims can be individuals, groups, or even entire
communities.
These crimes often cause physical, emotional, and psychological
trauma to the victim.</li>
<br>
<li><strong><i><u>Seriousness of Harm:</strong></i></u>Violent
crimes typically result in serious physical or psychological harm.
The harm caused can range from minor injuries to severe trauma or
death.</li>
<br>
<li><strong><i><u>Legal Consequences:</u></i></strong> Violent
crimes are serious offenses under the law and carry severe legal consequences.

Page | 46
Offenders can face imprisonment, fines, probation, or other
penalties, depending on the jurisdiction and the specific crime committed.</li>
<br>
<li><strong><i><u>Categories of Violent
Crimes:</u></i></strong>Violent crimes can be categorized into different types,
including homicide (murder and manslaughter), assault (aggravated and simple),
robbery, sexual assault, domestic violence, and hate crimes.
Each category has its own unique characteristics and legal
definitions.</li>
<br>
<li><strong><i><u>Impact on Society:</u></i></strong> Violent crimes
not only affect individual victims but also have a broader impact on society.
They can erode community safety, instill fear, and disrupt social
harmony.
Additionally, they often require significant resources from law
enforcement agencies, healthcare providers,
and social services to address the aftermath and support
victims.</li>
<br>
<li><strong><i><u>Prevention and Intervention:</u></i></strong> Due
to their serious nature, violent crimes are a major focus of crime prevention and
intervention efforts.
Communities, law enforcement agencies, and governments
implement various strategies to prevent these crimes, support victims, and
rehabilitate offenders.</li>
</ul></p>
<h2>2. Property Crimes:</h2>
<CENTER><IMG SRC="3.JPG"HEIGHT="30%"WIDTH="30%"></CENTER>
<p><ul>
<li><strong><i><u>Burglary/Theft:</u></i></strong> Homes and
businesses in poor neighborhoods might be more vulnerable to burglaries due to
inadequate security measures.</li>
<br>
<li><strong><i><u>Vandalism:</u></i></strong> Public and private
property might be more prone to vandalism due to lack of surveillance and
resources for maintenance.</li>
<br>

Page | 47
<li><strong><i><u>Robbery:</u></i></strong> Individuals in low-
income areas might be more susceptible to muggings and robberies.</li>
<br>
<li><strong><i><u>Damage or Theft:</u></i></strong>Property crimes
involve the destruction of or damage to someone else's property or the theft of
property belonging to another individual or entity.</li>
<br>
<li><strong><i><u>Intent to Deprive:</u></i></strong>Perpetrators of
property crimes intend to deprive the rightful owner of their property, whether
it's through theft, destruction, or unauthorized use.</li>
<br>
<li><strong><i><u>Absence of Physical Violence:</u></i></strong>
Unlike violent crimes, property crimes do not involve the use of force or threats
against individuals. They are primarily focused on interfering with the possession
or ownership of property.</li>
<br>
<li><strong><i><u>Types of Property Crimes:</u></i></strong>
Property crimes include various offenses such as burglary (unlawful entry into a
building with the intent to commit a crime), larceny (theft of personal property),
auto theft (stealing or attempting to steal a motor vehicle),
vandalism (willful destruction or defacement of property), arson (intentionally
setting fire to property), and shoplifting (stealing goods from a store).</li>
<br>
<li><strong><i><u>Financial Impact:</u></i></strong> Property crimes
can result in significant financial losses for individuals, businesses, and
communities. Victims may incur costs related to repairing or replacing damaged
property, implementing security measures, and dealing with the aftermath of the
crime.</li>
<br>
<li><strong><i><u>Legal Consequences:</u></i></strong> Offenders
caught and convicted of property crimes can face legal consequences, including
fines, probation, restitution (compensating the victim for losses), community
service, or imprisonment, depending on the severity of the offense and the
jurisdiction.</li>
<br>
<li>Prevention Measures: Property crimes can often be prevented
through various means such as security systems, proper lighting, community

Page | 48
watch programs, and public awareness campaigns. Law enforcement agencies
and communities work together to prevent property crimes and educate the
public on how to safeguard their property.</li>
</ul></p>
<h2>3. Economic Crimes:</h2>
<CENTER><IMG SRC="4.JPG"HEIGHT="30%"WIDTH="30%"></CENTER>
<p><ul>
<li><strong><i><u>Fraud:</u></i></strong> Scams and fraudulent
schemes can disproportionately affect poor communities where residents might
be desperate for financial opportunities.</li>
<br>
<li><strong><i><u>Extortion:</u></i></strong> Criminals might exploit
the vulnerability of poor individuals, forcing them to pay money or provide
services under threat.</li>
<br>
<li><strong><i><u>Financial Motivation:</u></i></strong> Economic
crimes are motivated by financial gain. Perpetrators engage in these crimes to
obtain money, property, services, or to secure a business or professional
advantage.</li>
<br>
<li><strong><i><u>Non-Violent Nature:</u></i></strong> Economic
crimes do not involve physical violence or force against individuals. Instead, they
rely on manipulation, fraud, or abuse of trust to achieve their objectives.</li>
<br>
<li><strong><i><u>Deception and Fraud:</u></i></strong> Economic
crimes often involve deception or fraud, where individuals or organizations
misrepresent facts, forge documents, or engage in other dishonest practices to
deceive victims and gain financial benefits.</li>
<br>
<li><strong><i><u>Occupational or Professional
Context:</u></i></strong> Many economic crimes are committed by individuals
in positions of trust and authority, such as business professionals, government
officials, or employees within organizations. These crimes can include
embezzlement, insider trading, bribery, and corruption.</li>
<br>
<li><strong><i><u>Complexity:</u></i></strong> Economic crimes can
be highly complex and sophisticated, involving intricate schemes or financial

Page | 49
transactions designed to evade detection. Perpetrators may exploit gaps in
regulatory systems or use advanced technology to commit these crimes.</li>
<br>
<li><strong><i><u>Impact on Individuals and
Businesses:</u></i></strong> Economic crimes can have severe financial
consequences for individuals, businesses, and even governments. Victims may
suffer significant monetary losses, damage to reputation, and emotional distress
as a result of these crimes.</li>
<br>
<li><strong><i><u>Legal Consequences:</u></i></strong>
Perpetrators of economic crimes can face legal consequences, including fines,
restitution (repaying victims for losses), asset forfeiture, and imprisonment.
Regulatory bodies and law enforcement agencies investigate and prosecute these
crimes to uphold the law and deter others from engaging in similar activities.</li>
<br>
<li><strong><i><u>Prevention and Detection:</u></i></strong>
Preventing economic crimes often involves implementing strict internal controls,
regulations, and compliance measures within businesses and organizations.
Additionally, law enforcement agencies focus on detecting and investigating these
crimes to bring perpetrators to justice.</li>
</ul></p>
<h2>4. Crimes against Children:</h2>
<CENTER><IMG SRC="5.JPG"HEIGHT="30%"WIDTH="30%"></CENTER>
<p><ul>
<li><strong><i><u>Child Abuse:</u></i></strong> Children in
impoverished homes might be at higher risk of abuse due to stressors related to
poverty.</li>
<br>
<li><strong><i><u>Child Labor:</u></i></strong> Exploitation of
children for labor, often underpaying or providing hazardous conditions, is more
common in impoverished areas.</li>
<br>
<li><strong><i><u>Vulnerability:</u></i></strong>Children are
vulnerable and depend on adults for care, protection, and support. They may lack
the physical and emotional strength to defend themselves against perpetrators,
making them easy targets for abuse and exploitation.</li>
<br>

Page | 50
<li><strong><i><u>Physical and Sexual Abuse:</u></i></strong>
Crimes against children often involve physical abuse, such as hitting, punching, or
shaking, causing harm to the child's body. Sexual abuse includes any form of
sexual activity imposed on a child without their consent, ranging from
inappropriate touching to rape.</li>
<br>
<li><strong><i><u>Emotional and Psychological
Abuse:</u></i></strong> Children can be victims of emotional and psychological
abuse, including verbal abuse, humiliation, threats, and manipulation. These
forms of abuse can have long-lasting effects on a child's self-esteem and
emotional well-being.</li>
<br>
<li><strong><i><u>Neglect:</u></i></strong> Child neglect occurs
when caregivers fail to provide the necessary care, supervision, and resources to
meet a child's basic needs, including food, shelter, clothing, medical care, and
education. Neglect can lead to physical and emotional harm, malnutrition, and
developmental issues.</li>
<br>
<li><strong><i><u>Child Labor and Exploitation:</u></i></strong>
Some children are subjected to forced labor, child trafficking, or exploitation,
often in dangerous and degrading conditions. This robs them of their childhood,
education, and opportunities for a better future.</li>
<br>
<li><strong><i><u>Online Exploitation:</u></i></strong> With the rise
of technology, crimes against children have extended into the digital realm.
Online exploitation includes activities like child pornography, online grooming,
sextortion, and cyberbullying, which can cause significant emotional distress and
harm to children.</li>
<br>
<li><strong><i><u>Legal Consequences:</u></i></strong>Perpetrators
of crimes against children can face severe legal consequences, including
imprisonment, fines, and registration as sex offenders. Laws and regulations vary
by jurisdiction, but society generally condemns these offenses and supports
strong legal measures to protect children.</li>
<br>
<li><strong><i><u>Prevention and
Support:</u></i></strong>Prevention efforts focus on education, awareness, and

Page | 51
support services for both children and their caregivers. Schools, communities, and
governments implement programs to educate children about personal safety,
promote healthy relationships, and provide resources for reporting abuse.</li>
<br>
<li><strong><i><u>Support for Victims:</u></i></strong> Victims of
crimes against children require specialized support services, including counseling,
therapy, medical care, and legal advocacy. Support organizations and social
services play a critical role in helping children overcome the trauma of abuse.</li>
</ul></p>
<h2>5. Drug-Related Crimes:</h2>
<CENTER><IMG SRC="6.JPG"HEIGHT="30%"WIDTH="30%"></CENTER>
<p><ul>
<li><strong><i><u>Drug Trafficking:</u></i></strong> Poor
communities are sometimes targeted by drug traffickers due to lack of resources
for effective law enforcement.</li>
<br>
<li><strong><i><u>Addiction:</u></i></strong> Substance abuse can
be higher in poor communities due to various socio-economic factors, leading to
related crimes.</li>
<br>
<li><strong><i><u>Illegal Drug Trade:</u></i></strong> Drug-related
crimes involve the production, trafficking, and distribution of illegal drugs, such as
cocaine, heroin, methamphetamine, and illegal prescription medications.
Traffickers and dealers often operate in organized networks, engaging in large-
scale smuggling and distribution activities.</li>
<br>
<li><strong><i><u>Possession and Use:</u></i></strong> Individuals
can be charged with drug-related crimes for possessing illegal drugs for personal
use. This includes both illicit substances like cocaine and marijuana (in regions
where it is illegal) as well as misusing prescription medications.</li>
<br>
<li><strong><i><u>Manufacturing and Cultivation:</u></i></strong>
Drug-related crimes encompass the manufacturing and cultivation of illegal drugs.
This involves the production of substances like methamphetamine in clandestine
labs or the cultivation of marijuana plants.</li>
<br>

Page | 52
<li><strong><i><u>Violence and Gang Activity:</u></i></strong> Drug-
related crimes are often associated with violence, as rival drug gangs or
individuals involved in the drug trade may engage in turf wars, shootings, and
other violent activities to protect their interests or gain control over
territories.</li>
<br>
<li><strong><i><u>Property Crimes:</u></i></strong> Individuals
addicted to drugs may resort to property crimes such as theft, burglary, or
robbery to fund their drug habits. These crimes are committed to obtain money
or valuables that can be exchanged for drugs.</li>
<br>
<li><strong><i><u>Public Health Issues:</u></i></strong> Drug-
related crimes are linked to public health issues such as the spread of infectious
diseases (like HIV/AIDS and hepatitis) through shared needles among drug users.
Additionally, drug abuse contributes to mental health problems, overdoses, and
other health complications.</li>
<br>
<li><strong><i><u>Impact on Communities:</u></i></strong> Drug-
related crimes can have a profound impact on communities, leading to increased
crime rates, neighborhood deterioration, and a decreased sense of safety.
Communities affected by drug-related crimes often face economic challenges and
reduced quality of life.</li>
<br>
<li><strong><i><u>Legal Consequences:</u></i></strong> Individuals
caught engaging in drug-related crimes can face significant legal consequences,
including arrest, imprisonment, fines, and probation. Law enforcement agencies
work to apprehend drug traffickers, dealers, and users to curb the drug trade and
associated criminal activities.</li>
<br>
<li><strong><i><u>Prevention and Treatment:</u></i></strong>
Efforts to address drug-related crimes often include prevention programs aimed
at educating individuals about the dangers of drug use. Additionally, there are
treatment and rehabilitation programs to help individuals overcome drug
addiction and reintegrate into society.</li>
</ul></p>
<h2>6. Environmental Crimes:</h2>
<CENTER><IMG SRC="7.JPG"HEIGHT="30%"WIDTH="30%"></CENTER>

Page | 53
<p><ul>
<li><strong><i><u>Illegal Dumping/Pollution:</u></i></strong>Poor
areas might be targeted for illegal dumping of waste, leading to environmental
hazards and health issues for residents.</li>
<br>
<li<strong><i><u>Environmental Harm:</u></i></strong> Environmental
crimes cause significant harm to the environment. This harm can manifest in
various ways, such as pollution of air, water, or soil, deforestation, destruction of
habitats, and depletion of natural resources.</li>
<br>
<li><strong><i><u>Illegal Pollution:</u></i></strong> Perpetrators of
environmental crimes may release hazardous substances or pollutants into the
environment without proper permits or in quantities that exceed legal limits. This
pollution can contaminate water bodies, harm aquatic life, and pose risks to
human health.</li>
<br>
<li><strong><i><u>Illegal Waste Disposal:</u></i></strong> Improper
disposal of hazardous waste, electronic waste (e-waste), or other types of waste
materials is a common form of environmental crime. Dumping waste illegally can
lead to soil and water pollution, posing risks to both the environment and public
health.</li>
<br>
<li><strong><i><u>Wildlife Trafficking:</u></i></strong> Environmental
crimes also include illegal activities related to wildlife, such as poaching,
trafficking, and trade in endangered species and their body parts. This can lead to
the depletion of animal populations and disrupt ecosystems.</li>
<br>
<li><strong><i><u>Deforestation:</u></i></strong> Illegally cutting
down trees or clearing forests without proper permits contributes to
deforestation. Deforestation has serious environmental consequences, including
loss of biodiversity, disruption of water cycles, and increased greenhouse gas
emissions.</li>
<br>
<li><strong><i><u>Biodiversity Crimes:</u></i></strong> Crimes against
biodiversity include activities that harm plant and animal species, leading to
imbalances in natural ecosystems. This can include overfishing, destruction of
habitats, and introduction of invasive species.</li>

Page | 54
<br>
<li><strong><i><u>Regulatory Violations:</u></i></strong>
Environmental crimes often involve violations of environmental laws, regulations,
and international agreements. Perpetrators may bypass regulations to save costs
or maximize profits, disregarding the environmental impact of their actions.</li>
<br>
<li><strong><i><u>Transnational Nature:</u></i></strong> Many
environmental crimes have a transnational dimension, involving illegal activities
across international borders. This makes addressing these crimes challenging and
often requires international cooperation and coordination among law
enforcement agencies.</li>
<br>
<li><strong><i><u>Environmental Justice:</u></i></strong>
Environmental crimes can disproportionately affect vulnerable communities,
often located near industrial sites or areas with poor environmental regulations.
These communities may suffer the most from pollution, lack of access to clean
water, and other environmental hazards.</li>
<br>
<li><strong><i><u>Legal Consequences:</u></i></strong> Perpetrators
of environmental crimes can face legal consequences, including fines,
imprisonment, asset forfeiture, and legal restrictions. Governments and
international organizations work together to enforce environmental laws and
hold individuals and corporations accountable for their actions.</li>
</ul></p>
<h2>7. Social Crimes:</h2>
<CENTER><IMG SRC="8.JPG"HEIGHT="30%"WIDTH="30%"></CENTER>
<p><ul>
<li><strong><i><u>Discrimination:</u></i></strong> Discrimination and
hate crimes can target individuals based on their socioeconomic status,
exacerbating existing social inequalities.</li>
<br>
<li><strong><i><u>Prostitution/Human Trafficking:</u></i></strong>
Vulnerable individuals in poor communities might be forced into prostitution or
human trafficking due to lack of options.</li>
<br>
<li><strong><i><u>Social Impact:</u></i></strong> Social crimes have a
profound impact on communities and society as a whole. They can create fear,

Page | 55
erode trust, and destabilize social structures. Examples include terrorism, hate
crimes, and organized crime activities.</li>
<br>
<li><strong><i><u>Violate Social Norms:</u></i></strong> Social crimes
often involve behaviors that violate widely accepted social norms and values.
These actions are seen as morally and ethically wrong by the majority of the
community.</li>
<br>
<li><strong><i><u>Cause Public Fear:</u></i></strong> Social crimes can
generate widespread fear and anxiety within the community. High-profile crimes
or acts of violence can lead to a sense of insecurity among the public.</li>
<br>
<li><strong><i><u>Disrupt Social Harmony:</u></i></strong> Crimes
that target specific social or ethnic groups can disrupt social harmony and lead to
tension and conflict among different segments of society.</li>
<br>
<li><strong><i><u>Require Social Solutions:</u></i></strong>
Addressing social crimes often requires more than just law enforcement
intervention. Social solutions such as education, community engagement, and
addressing underlying social inequalities are crucial in preventing these
crimes.</li>
<br>
<li><strong><i><u>Challenge Social Institutions:</u></i></strong> Social
crimes may challenge the effectiveness of social institutions, including law
enforcement agencies, legal systems, and social services. These institutions often
need to adapt and develop new strategies to combat emerging social crimes
effectively.</li>
<br>
<li><strong><i><u>Address Root Causes:</u></i></strong> Social crimes
are often symptomatic of deeper social problems such as poverty, discrimination,
lack of education, and limited access to opportunities. Addressing these root
causes is essential in reducing the occurrence of social crimes.</li>
<br>
<li><strong><i><u>Community Involvement:</u></i></strong>
Preventing and addressing social crimes often requires active involvement and
cooperation from the community. Community members, organizations, and

Page | 56
leaders play a vital role in promoting social cohesion and preventing criminal
activities.</li>
<br>
<li><strong><i><u>Legislative Measures:</u></i></strong> Governments
may introduce specific legislation to address social crimes and enhance penalties
for offenses that have a significant social impact. Legal measures can act as a
deterrent and provide a framework for law enforcement agencies to combat
these crimes.</li>
<br>
<li><strong><i><u>Promote Social Justice:</u></i></strong> Addressing
social crimes is linked to the broader concept of social justice. Efforts to combat
social crimes often involve advocating for equality, fairness, and social inclusion
for all members of society.</li>
</ul></p>
<h2>8. Cybercrimes:</h2>
<CENTER><IMG SRC="9.JPG"HEIGHT="30%"WIDTH="30%"></CENTER>
<p><ul>
<li><strong><i><u>Online Scams</u></i></strong> People in
economically disadvantaged situations might be targeted by online scams,
promising financial relief or job opportunities.</li></p></ul>
<br>
<li><strong><i><u>Use of Technology:</u></i></strong> Cybercrimes
involve the use of computer technology, networks, and internet platforms.
Criminals use these tools to target individuals, organizations, or
governments.</li>
<br>
<li><strong><i><u>Anonymity:</u></i></strong> Perpetrators can hide
their identity online, making it difficult for law enforcement agencies to track
them down. Tools like VPNs and anonymizing software allow cybercriminals to
operate anonymously.</li>
<br>
<li><strong><i><u>Global Reach:</u></i></strong> Cybercrimes can be
committed from anywhere in the world and can target victims in different
countries. The borderless nature of the internet allows criminals to reach a global
audience.</li>
<br>

Page | 57
<li><strong><i><u>Variety of Crimes:</u></i></strong>Cybercrimes
encompass a wide range of illegal activities, including phishing, hacking, identity
theft, online fraud, cyberbullying, ransomware attacks, and more. The methods
and techniques used by cybercriminals continue to evolve.</li>
<br>
<li><strong><i><u>Financial Motivation:</u></i></strong> Many
cybercrimes are financially motivated. Criminals may steal sensitive financial
information, commit fraud, or demand ransom payments from victims in
exchange for restoring access to their data.</li>
<br>
<li><strong><i><u>Disruption of Services:</u></i></strong>
Cybercriminals may target websites, networks, or online services to disrupt their
normal functioning. This can lead to financial losses and damage to the reputation
of the targeted entity.</li>
<br>
<li><strong><i><u>Data Breaches:</u></i></strong> Cybercriminals
often target databases and systems containing sensitive information. Data
breaches can result in the theft of personal, financial, or corporate data, leading
to privacy concerns and identity theft.</li>
<br>
<li><strong><i><u>Social Engineering:</u></i></li> Cybercriminals often
use psychological manipulation techniques to deceive individuals or employees
within organizations. Phishing emails, for example, trick users into revealing
sensitive information or clicking on malicious links.</li>
<br>
<li><strong><i><u>Constant Evolution:</u></i></strong> As technology
advances, so do the techniques employed by cybercriminals. They continuously
adapt to security measures, requiring constant updates and improvements in
cybersecurity practices.</li>
<br>
<li><strong><i><u>Legal Challenges:</u></i></strong> Cybercrimes pose
challenges to law enforcement and legal systems due to jurisdictional issues and
the complexity of tracking down online criminals. International cooperation is
essential to combat cybercrime effectively.</li>
<br>
<li><strong><i><u>Impact on Individuals and
Businesses:</u></i></strong> Cybercrimes can have severe consequences for

Page | 58
individuals, such as financial loss, emotional distress, and reputational damage.
For businesses, the impact can include financial losses, legal consequences, and
damage to customer trust.</li>

<h2>Resources</h2>
<p>Explore the following resources to learn more about crime against the
poor community:</p>

<a href=https://www.restlessstories.com/poverties/poverty-and-
crime>Click here!</a>

<h2>Support Us</h2>
<p>If you are passionate about helping the poor community, consider
volunteering with us or making a donation to support our cause.</p>
</section>
<h2>Contact Us</h2>
<p>If you have any questions or want to Support Us, feel free to contact
us:</p>
<p>Email: [email protected]</p>
<p>Phone: 82527-23232</p>
</body>

</html>

</html>

Page | 59
OUTPUT

Page | 60
Page | 61
Page | 62
Page | 63
Page | 64
Page | 65
PROGRAM-17
At this step of web page development add tables by
using its different attributes.
<!DOCTYPE html>
<html>
<head>
<title>Sample STUDENT TABLE</title>
<style>
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
</style>
</head>
<body>
<center><h2>MARKS</h2></center>
<table>
<tr>
<th>S.NO</th>
<th>NAME</th>
<th>CLASS</th>
</tr>
<tr>
<td>1</td>
<td>RAMESH</td>
<td>12-B</td>

Page | 66
</tr>
<tr>
<td>2</td>
<td>ELVISH</td>
<td>12-A</td>
</tr>
<tr>
<td>3</td>
<td>MAHESH</td>
<td>12-C</td>
</tr>
<tr>
<td>4</td>
<td>GARVIT</td>
<td>12-D</td>
</tr>
<tr>
<td>5</td>
<td>KRISHNA</td>
<td>12-E</td>
</tr>
</table>
</body>
</html>

Page | 67
OUTPUT

Page | 68
PROGRAM-18
Develop a web page by adding frames and showcase its
different features.

<!DOCTYPE html>
<html>
<head>
<title>Frames Example</title>
</head>
<frameset cols="25%, 75%">
<frame src="table.html" name="menuFrame">
<frame src="ASS2.HTML" name="contentFrame">
<noframes>
<body>
<p>THIS PROJECT IS MADE FROM FRAMES</p>
</body>
</noframes>
</frameset>
</html>

Page | 69
OUTPUT

Page | 70

You might also like