HTML and Javascript Program for Theory 2025
HTML and Javascript Program for Theory 2025
<!doctype html>
<html>
<head>
<title>Personal Details</title>
</head>
</body>
</html>
<!doctype html>
<html>
<head>
<title>form</title>
</head>
<body>
1
JAVASCRIPT
<!doctype html>
<html>
<head>
<title>Positive negative</title>
</head>
<body>
<script language=javascript>
n=parseInt(prompt("Enter a number"))
if(n>0)
document.write(n+" is positive")
else
document.write(n+" is negative")
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<title>Square</title>
</head>
<body>
<script language=javascript>
n=parseInt(prompt("Enter a number"))
document.write("The square of " + n + " is " + n*n)
</script>
</body>
</html>