css pradnya
css pradnya
Annexure - I
Micro-Project Proposal
• Aim of this Micro-Project is to create a word length calculator web service website.
Members
3 Develop a program
Pradnya Jaunjat
1 41 Pradnya Jaunjat
Annexure - II
Micro-Project Report
Aim of this Micro-Project is to create a word length calculator web service website.
2.0 Rationale:
JavaScript, a versatile language for web development, is widely used for creating interactive
and dynamic web applications. In this micro-project, the focus is on harnessing JavaScript's
capabilities to build a BMI Calculator. The project aims to demonstrate proficiency in
JavaScript programming and DOM manipulation, enhancing user experience in web
applications.
Text Processing:
Describe early methods of text processing and word counting in programming and word processors.
Highlight how JavaScript libraries have made text manipulation and analysis more accessible for web
development.
Word Length Calculators in Web Development:
Review existing implementations of word and character counters in web applications. Discuss how these
tools have evolved from basic forms to interactive calculators embedded within web platforms for ease
of use.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home Page</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
margin: 0;
padding: 20px;
text-align: center;
}
header {
background-color: #007BFF;
color: white;
padding: 10px 0;
}
h1 {
margin: 0;
}
nav {
margin: 20px 0;
}
nav a {
margin: 0 15px;
text-decoration: none;
color: #007BFF;
font-weight: bold;
}
nav a:hover {
text-decoration: underline;
}
.
calculator {
display: none;
margin-top: 30px;
}
input {
width: 300px;
height: 30px;
margin-bottom: 10px;
padding: 5px;
font-size: 16px;
text-align: center;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
width: 300px;
height: 40px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
background-color: #007BFF;
color: white;
}
button:hover {
background-color: #0056b3;
}
#output {
margin-top: 20px;
font-size: 20px;
}
</style>
</head>
<body>
<header>
<h1>Welcome to My Simple Word Length Calculator web site</h1>
</header>
<br/>
<nav>
<a href="#" id="homeLink">Home</a>
<a href="#" id="calculatorLink">Word Length Calculator</a>
</nav>
</div>
<script>
const calculatorLink =
document.getElementById('calculatorLink');const homeLink =
document.getElementById('homeLink');
const calculatorDiv = document.getElementById('calculator');
calculatorLink.addEventListener('click',
function() {calculatorDiv.style.display =
'block';
});
homeLink.addEventListener('click',
function() {calculatorDiv.style.display =
'none';
});
document.getElementById('btn').addEventListener('click',
function() {let word = document.getElementById('str').value;
let count = word.length;
document.getElementById('output').innerText = `Length:
${count}`;
});
</script>
</body>
</html>
8.0 Output:
Home Page
Profile Page
During the course of this micro-project, we learnt to create a package and define a class
in which we created a method for displaying tasks.
a) Acquired understanding of various syntaxes and features of Javascript programming
language.
b) Gained expertise in calling methods from different packages by creating objects of
their respective classes.
c) Learned to create packages and import them into the main file for efficient
organization of code.
11.0 Conclusion:
In summary, the Simple Web Application successfully fulfills its aim of providing an intuitive and
efficient tool for calculating word lengths. By combining a user-friendly interface with essential
functionalities, the application enhances the user experience and serves as a valuable resource for a
Wide range of users, from students and writers to educators and language enthusiasts.
Through the integration of HTML, CSS, and JavaScript, this project not only showcases the
fundamental concepts of web development but also demonstrates how these technologies can be
utilized to create interactive and engaging applications. The responsive design ensures accessibility
across various devices, making it convenient for users to access the tool anytime and anywhere.
As users engage with the word length calculator, they are empowered to explore language more
deeply, improve their writing skills, and gain a better understanding of word usage. This application
stands as a testament to the potential of simple web tools in enhancing everyday tasks.
We hope that this Simple Web Application serves as a helpful resource and inspires further
exploration in the realm of web development and language analysis. Thank you for using our tool,
and
we encourage you to share your feedback and suggestions for future enhancements
12.0 References:
1. W3Schools: A popular web development tutorial site that offers easy-to-understand tutorials and
references for web technologies.
URL: https://www.w3schools.com/
2. CSS-Tricks: A website that provides articles, tips, and tricks for web design and development,
particularly focusing on CSS.
URL: https://css-tricks.com/
3. Stack Overflow: A community-driven Q&A site where developers can ask questions and share
knowledge about programming and web development.
URL: https://stackoverflow.com/