WP File
WP File
1
Build a unit converter
10. application using HTML and
JavaScript.
2
EXPERIMENT 1
Create a web page that covers your CV using various HTML tags (UL, OL,
Table, etc.).
<html>
<head>
</head>
</div>
<h2>Personal Information</h2>
</div>
<div class="Contact">
<h2>Contact</h2>
<p><b>Email id:</b>[email protected]</p>
<p><b>Mobile no :</b>8800XXXXX</p>
</div>
<div class="Skills">
<h2>Skills</h2>
<ul>
</li>
</ul>
</div>
<div class="Language">
3
<h2>Language</h2>
<ul>
<li>English</li>
<li>Hindi</li>
</ul>
</div>
<div class="Hobbies">
<h2>Hobbies</h2>
<ul>
<li>Listening music.</li>
<li>Playing Badminton.</li>
</ul>
</div>
</div>
<div class="right">
<div class="name">
</div>
<div class="Objective">
<h2>Objective</h2>
<div class="Education">
<h2>Education</h2>
<tr>
<th>University/college/school </th>
<th> percentage/cgpa</th>
</tr>
4
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</ol>
</ul>
</div>
<div class="Declaration">
<h2>Declaration</h2>
<p> I hereby declare that all the above information is true to the best
of my knowledge.
5
</p>
</div>
</div>
</div>
</body>
</html>
6
EXPERIMENT 2
Create a web page that display brief details of various programming languages
using various types of CSS.
<!DOCTYPE html>
<html>
<head>
<title>
</title>
</head>
<marquee><b><u>DIFFERENT</u><u>PRAOGRAMMING</u><u>LANGUAGE</u></b
></marquee>
height= "350px">
<ul class="nav-list">
<div class="logo">
</div>
language</a></li> language</a></li>
</ul>
<div class="rightNav">
</nav>
</div>
<button class="btnbtn-sm">Search</button>
<section class="firstsection">
<div class="box-main">
7
<div class="firstHalf">
</h1>
<p class="text-small">
Each series of steps is called a procedure, and a program written in one of these
languages will have one or more procedures within it. Common examples of
procedural languages include:
</p>
height= "100px">
</div>
</div>
</section>
<section class="secondsection">
<div class="box-main">
<div class="secondHalf">
</h1>
<p class="text-small">
and returns a result. The result will vary depending on what data you
input into the function.
</p>
height= "100px">
height= "100px">
</div>
8
</div>
</section>
<section class="section">
<div class="paras">
</div>
programs, as code
</p>
<div class="thumbnail">
<imgsrc="C:\Users\VAISHALI\Downloads\fun.jpeg"
</div>
</section>
<section class="section">
<div class="paras">
</p>
</div>
<div class="thumbnail">
<imgsrc="C:\Users\VAISHALI\Downloads\bash.jpeg"
9
height= "100px">
1
0
</div>
</section>
<section class="section">
<div class="paras">
make decisions.
Some examples of logic languages include: Prolog, Absys, Datalog, and Alma-0.
</p>
</div>
<div class="thumbnail">
<imgsrc="C:\Users\VAISHALI\Downloads\alma.jpeg"
height= "100px>
</div>
</section>
<footer class="background">
<p class="text-footer">
</p>
</footer>
</body>
</head>
10
11
EXPERIMENT 3
Create a web page using JavaScript and HTML to demonstrate Simple
Calculator Application.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="container">
<div class="calculator">
<form>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
12
<input type="button" value="6" onclick="display.value +='6' ">
13
<input type="button" value="" onclick="display.value +='' " class="operator">
</div>
<div>
</div>
<div>
</div>
</form>
</div>
</div>
</body>
</html>
CSS STYLE:
*{
margin: 0;
padding: 0;
box-sizing: border-box;
14
.calculator{
box-shadow: -8px -8px 15px rgba(255, 255, 255, 0.1) 5px 5px 15px rgba(0, 0, 0,
0.2); background: transparent;
form .displa
y{ display:
flex;
15
16
EXPERIMENT 4
Create a web page covering the basic CRUD (Create, Read, Update, delete) that
implements To-Do/Grocery lists using JavaScript and HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="container">
<div class="form">
</div>
<ul id="taskList">
</ul>
</div>
<script src="script.js"></script>
</body>
</html>
body {
.container {
text-align: center;
17
}
.form {
margin-bottom: 40px;
ul {
margin: 0;
li {
button {
function addTask() {
};
taskInput.value = "";
18
EXPERIMENT 5
Create a JavaScript application based on various Data Types, Statements,
Keywords and Operators.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript Basics</title>
<style>
body {
0; padding: 20px;
.container {
background-color:white; padding:
h1 {
p {
.output {
</style>
</head>
<body>
<div class="container">
19
<script>
// Data types
// Operators
result; if (a > b) {
} else {
// Keywords
"Hi": console.log("Hi
there!"); break;
// Output
output.classList.add('output'); output.innerHTML = `
<p>Number: ${numberVar}</p>
<p>String: ${stringVar}</p>
<p>Boolean: ${booleanVar}</p>
<p>Array: ${arrayVar}</p>
<p>Object: ${JSON.stringify(objectVar)}</p>
<p>Addition: ${addition}</p>
11
0
<p>Subtraction: ${subtraction}</p>
<p>Multiplication: ${multiplication}</p>
<p>Division: ${division}</p>
<p>Remainder: ${remainder}</p>
<p>Result: ${result}</p>
<p>greeting: ${greeting}</p>
`;
document.body.appendChild(output
);
</script>
</div>
</body>
</html>
20
EXPERIMENT 6
Create a JavaScript application with Window Objects and Document Objects.
A. Document Objects :
<html>
<head>
<title>Document's Properties</title>
</head>
<body>
<p id="demo"></p>
<script>
body = document.body;
+ title
+ "<br>"
+ "domain : "
+ domain
+ "<br>"
+ "body : "
+ body;
</script>
</body>
</html>
B. Window Objects:
<html>
<head>
21
</head>
22
<body>
<h1>Window Object</h1>
<button onclick="show()">Check</button>
<p id="prop"></p>
<script>
function show()
+ h + "<br>"
+ w + "<br>"
+ "Window location:"
+ l
+ "<br>"
+ c;
</script>
</body>
</html>
23
EXPERIMENT 7
Create a JavaScript application with Objects Creation and by adding methods of
objects.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1><center>Car Information</center></h1>
<center><p id="carInfo"></p></center>
<br/>
<script>
2020,
},
};
let newModel = prompt('Enter the new model:'); if (newModel !== null &&newModel
!== '') {
}
24
}
25
</script>
</body>
</html>
26
EXPERIMENT 8
Create a JavaScript application with loops to incorporate the concept of
Iteration.
<html>
<head>
</head>
<body>
<h1>Multiplication Table</h1>
<table border="1">
<tr>
<th>Number</th>
<th>Multiplier</th>
<th>Result</th>
</tr>
<script>
document.write(`
<tr>
<td>${i}</td>
<td>${j}</td>
<td>${i * j}</td>
</tr>
`);
</script>
</table>
</body>
</html>
27
28
EXPERIMENT 9
Create a JavaScript application for random number generation.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="container">
<center><p id="result"></p></center>
</div>
<script>
function generateRandomNumber() {
</script>
</body>
</html>
29
EXPERIMENT 10
Built a unit convertor application using HTML and JavaScript.
<!DOCTYPE html>
<html>
<head>
<title>Unit Converter</title>
</head>
<body>
<div class="converter-container">
<h2>Unit Converter</h2>
<div class="length-converter">
<h3>Length Converter</h3>
<div class="input-container">
</div>
<div class="results">
</div>
</div>
<div class="temperature-converter">
<h3>Temperature Converter</h3>
<div class="input-container">
</div>
<div class="results">
21
0
</div>
</div>
<script src="converter.js"></script>
</body>
</html>
21
1