1) write a program in html to order computer parts Using tags.
<!DOCTYPE html>
<html>
<head>
<title>Computer Parts Order</title>
</head>
<body>
<h2>Order Computer Parts</h2>
<form>
<label for="cpu">CPU:</label>
<input type="text" id="cpu" name="cpu"><br><br>
<label for="gpu">GPU:</label>
<input type="text" id="gpu" name="gpu"><br><br>
<label for="ram">RAM:</label>
<input type="text" id="ram" name="ram"><br><br>
<label for="storage">Storage:</label>
<input type="text" id="storage" name="storage"><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
2) write a program in html To show use of lists.
<!DOCTYPE html>
<html>
<head>
<title>Lists Example</title>
</head>
<body>
<h2>Types of Fruits</h2>
<ul>
<li>Apple</li>
<li>Orange</li>
<li>Banana</li>
<li>Grapes</li>
</ul>
<h2>Types of Animals</h2>
<ol>
<li>Cat</li>
<li>Dog</li>
<li>Elephant</li>
<li>Lion</li>
</ol>
</body>
</html>
3)write a program in html To draw a table to data.
<!DOCTYPE html>
<html>
<head> <title>Table Example</title>
</head>
<body>
<h2>Student Grades</h2>
<table border="1">
<tr>
<th>Name</th>
<th>Math</th>
<th>Science</th>
<th>English</th>
</tr>
<tr>
<td>John</td>
<td>90</td>
<td>85</td>
<td>88</td>
</tr>
<tr>
<td>Alice</td>
<td>95</td>
<td>92</td>
<td>91</td>
</tr>
</table>
</body>
</html>
4)write a program in dhtml to show how data are write dynamically.
<!DOCTYPE html>
<html>
<head>
<title>DHTML Example</title>
<script>
function displayData() {
document.getElementById("dynamic").innerHTML = "Dynamic data!";
</script>
</head>
<body>
<h2>Dynamically Written Data</h2>
<button onclick="displayData()">Show Data</button>
<p id="dynamic"></p>
</body>
</html>
5)write a program in external cascading style sheet.
6)write a program in javascript to calculate factorial of a given number.
<!DOCTYPE html>
<html>
<head>
<title>Factorial Calculator</title>
</head>
<body>
<h2>Factorial Calculator</h2>
<label for="number">Enter a number:</label>
<input type="number" id="number">
<button onclick="calculateFactorial()">Calculate Factorial</button>
<p id="result"></p>
<script>
function calculateFactorial() {
let number = parseInt(document.getElementById("number").value);
let factorial = 1;
for (let i = 1; i <= number; i++) {
factorial *= i;
document.getElementById("result").innerHTML = "Factorial of " + number + " is " + factorial;
</script>
</body>
</html>
7)write a program in javascript to show whether a given number is even or odd.
<!DOCTYPE html>
<html>
<head>
<title>Even/Odd Checker</title>
</head>
<body>
<h2>Even/Odd Checker</h2>
<label for="number">Enter a number:</label>
<input type="number" id="number">
<button onclick="checkEvenOdd()">Check</button>
<p id="result"></p>
<script>
function checkEvenOdd() {
let number = parseInt(document.getElementById("number").value);
if (number % 2 === 0) {
document.getElementById("result").innerHTML = number + " is even.";
} else {
document.getElementById("result").innerHTML = number + " is odd.";
</script>
</body>
</html>
8) write a program in asp to show whether a given number is prime or not.
9) write a program in asp to input button and textbox and after clicking on button to print hello
world in textbox.
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h2>Hello World</h2>
<input type="text" id="output"><br><br>
<button onclick="printHello()">Click Me</button>
<script>
function printHello() {
document.getElementById("output").value = "Hello, World!";
</script>
</body>
</html>
10)write a program in javascript to check whether a string is palindrome or not.