HTML, CSS, JS Codes
HTML, CSS, JS Codes
<html>
<body>
width="400" height="300"
<option value="Select..">Select..</option>
<option value="ADD">ADD</option>
<option value="SUBTRACT">SUBTRACT</option>
<option value="MULTIPLY">MULTIPLY</option>
<option value="DIVIDE">DIVIDE</option>
</select><br>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div>
<dl>
<dt class="reasons">Simple</dt>
<dt class="reasons">Secure</dt>
public-key encryption.</dd>
<dt class="reasons">Robust</dt>
checking.</dd>
</dl>
</div>
</body>
</html>
FeedBack Details
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FeedBack Details</title>
<style>
body {
display: flex;
flex-direction: column;
#container {
display: grid;
place-items: center;
input {
margin-top: 1rem;
display: block;
margin-right: auto;
margin-left: auto;
</style>
</head>
<body>
<div id="container">
<div>
</div>
</form>
</div>
<div id="result"></div>
<script src="script.js"></script>
</body>
</html>
Java scrpit
feedbacks.push(feedback);
container.style.alignSelf = "flex-end";
function displayFeedback(){
if (i !== 0) {
feedbackText += "<br>";
feedbackText +
"</p>";
Bill Calculator
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bill Calculator</title>
</head>
<body>
<h1>Bill Calculator</h1>
<table>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
<label for="qty">Quantity</label>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
</table>
</form>
<script>
function calculateTotalPrice() {
return false;
</script>
</body>
</html>
CSS
h1{
text-align:center;
color:#FF00FF;
font-style:italic;
font-weight:bold;
table{
text-align:left;
margin-left:35%;
border-spacing:10px;
border-width:10%;
border-style:solid;
background-color:#F899A4;
td{
border-style:ridge;
padding:10px;
}
Trainer Feedback Rating Chart
HTML
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<div class="foot">
<form>
<table id="chart">
<th>S.No.</th>
<th>Overall Rating</th>
<th>Feedback</th>
</tr>
<td>1</td>
<td>5</td>
<td id="ex1" >Excellent</td>
</tr>
<tr class="tr2">
<td>2</td>
<td>4</td>
</tr>
<tr class="tr1">
<td>3</td>
<td>3</td>
<td id="go1">Good</td>
</tr>
<tr class="tr2">
<td>4</td>
<td>2</td>
<td id="av1">Average</td>
</tr>
<tr class="tr1">
<td>5</td>
<td>Python Programming</td>
<td>1</td>
</tr>
</table>
</form>
</div>
</body>
</html>
CSS
h1 {
text-align: center;
color: #FF00FF;
font-style: italic;
table {
text-align: left;
margin-left: 35%;
background-color: #F0F0F0;
td {
text-align: center;
caption {
text-align: left;
font-weight: bold;
.theader {
background-color: #800000;
color: white;
.tr1 {
background-color: #ff0080;
.tr2 {
background-color: #00ffff;
#ex1, #vg1 {
background-color: #00ff00;
#go1 {
background-color: #ffff00;
#av1 {
background-color: #d3d3d3;
color: white;
#ba1 {
background-color: #ff0000;
color: white;
}
Fixed And Reducing Interest Loan Estimator
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<style type="text/css">
h2 {
text-align: center;
color: #FF0000;
font-style: italic;
font-weight: bold;
table {
text-align: left;
background-color: #FFE77A;
padding: 10px;
thead {
text-align: center;
#tablemain {
margin-left: 35%;
#Estimate {
background-color: #F1F334;
color: #000000;
font-size: 15px;
height: 35px;
width: 100px;
</style>
</head>
<body>
<table id="tablemain">
<tbody>
<tr>
<td>
<table>
<tbody>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td></td>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table border="1">
<caption><b>Loan Estimation</b></caption>
<thead>
<tr>
<th>Details</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<output id="tInterest"></output>
</td>
<td>
<output id="tInterestFixed"></output>
</td>
</tr>
<tr>
<td>
<output id="tPayment"></output>
</td>
<td>
<output id="tPaymentFixed"></output>
</td>
</tr>
<tr>
<td>Monthly EMI Rs.</td>
<td>
<output id="EMI"></output>
</td>
<td>
<output id="EMIFixed"></output>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<script src="Estimation.js"></script>
</body>
</html>
Java scrpit
function getEmiReducing(P, N, R) {
function EstimateReducingInterestLoan() {
calculateEMI();
totalPayment();
totalInterest();
EstimateFixedInterestLoan();
function EstimateFixedInterestLoan() {
document.getElementById("tInterestFixed").innerHTML =
Number(totalInterestFixed).toFixed(2).toString();
document.getElementById("tPaymentFixed").innerHTML =
Number(totalPaymentFixed).toFixed(2).toString();
document.getElementById("EMIFixed").innerHTML = Number(emiFixed).toFixed(2).toString();
function reducingLoan() {
return {
emiReducing: emiReducing,
totalPaymentReducing: totalPaymentReducing,
totalInterestReducing: totalInterestReducing
};
function calculateEMI() {
document.getElementById("EMI").innerHTML = Number(emiReducing).toFixed(2).toString();
function totalPayment() {
document.getElementById("tPayment").innerHTML =
Number(totalPaymentReducing).toFixed(2).toString();
function totalInterest() {
document.getElementById("tInterest").innerText =
Number(totalInterestReducing).toFixed(2).toString();
}
Word Play - Operators, Conditional Control Statements & Loops
Java script
function wordPlay(number){
if(number>50){
else if(number<1){
var i=1;
if(i===number){
res+="Jump";
else{
res+="Jump ";
else if(i%3===0)
{
if(i===number){
res+="Tap";
else{
res+="Tap ";
else if(i%5===0)
if(i===number){
res+="Clap";
else{
res+="Clap ";
else{
if(i===number){
res+=i;
else{
res+=i+" ";
i++;
res=res.substring(0,res.length);
return res;
}
}
console.log(wordPlay(16))
function modifyString(str)
for(var i=0;i<str.length;i++)
if(str.includes(" "))
str=str.replace(" ","");
var res=str.toLowerCase();
return res;
function uniqueCharacters(str)
var res="";
{
if(res.includes(str[i])===false)
res+=str[i];
return modifyString(res);
var kg,cake,cakeid,cakesize;
cakesize=str.length;
kg=str.substring(0,4);
cakeid=str.substring(cakesize-3);
cake=str.substring(4,cakesize-3);
var weight=(parseInt(kg)/1000);
var kgw=Math.round(weight);
var cost=Math.round((weight)*450);
return "Your order for "+kgw+" kg "+cake+" cake has been taken. You are requested to pay Rs. "+cost+"
on the order no "+cakeid;
}
Validate Email - Regular Expression & test Function
java script
function validateEmail(email)
var result="";
if(email.match(emailformat))
else
return result;
console.log(validateEmail("info123@example.com"));
Greetings - DOM
Java script
<html>
<head>
</head>
<body>
<h1>Elite Coaching Center</h1>
<script src="script.js"></script>
<table border="1">
<tr>
</tr>
<tr>
<td><label for="course">Course</label></td>
<option value="Python">Python</option>
<option value="Java">Java</option>
<option value="Oracle">Oracle</option>
</select>
</td>
</tr>
</table>
<p>
<div id="greet"></div>
</p>
</body>
</html>
class Employee
constructor(name,designation,year_of_experience)
{
this.name=name;
this.designation=designation;
this.year_of_experience=year_of_experience;
return emp;
function validateObject(employee)
function displayEmployee(name,designation,year_of_experience)
const emp=createEmployee(name,designation,year_of_experience);
if(validateObject(emp))
var exp=date-year_of_experience-2;
console.log(displayEmployee("Jerold","Manager",15));