HTML/JavaScript Web Application Answers

Questions: 680

Answers by our Experts: 648

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Imagine you have been employed to build a single-page web application that manages a study plan for the Web Development module on the Creative Computing course. Use HTML and CSS to mock-up what this application would look like, without adding any interactivity. You must include:

  • Wireframe (add image to the directory);
  • Header, Navigation menu, main content and a footer;
  • The main content must be split into two or three columns;
  • Five demo items;
  • Your HTML should use semantically correct elements;
  • An external style.css file;
  • The use of at least one button;
  • The page does not need to be interactive;
  • You should focus on the structure and visual layout of the page, but also consider design too;
  • Commenting throughout.

Use the below reference image:

https://assets.ccbp.in/frontend/content/dynamic-webapps/ccbp-login-op.gif


JAVASCRIPT Code

let myFormEl = document.getElementById("myForm");

let nameEl = document.getElementById("name");

let nameErrMsgEl = document.getElementById("nameErrMsg");

let passwordEl = document.getElementById("password");

let passwordErrMsgEl = document.getElementById("passwordErrMsg");

let resultErrMsgEl = document.getElementById("resultMsg");

nameEl.addEventListener("blur", function(event) {

  if (event.target.value === "") {

    nameErrMsgEl.textContent = "Required*";

  } else {

    nameErrMsgEl.textContent = "";

  }

});

passwordEl.addEventListener("blur", function(event) {

  if (event.target.value === "") {

    passwordErrMsgEl.textContent = "Required*";

  } else {

    passwordErrMsgEl.textContent = "";

  }

});



Create a PHP page, with the standard HTML ,

and <body> tags.<br/><br/><br/>Save your file with the .php extension.<br/><br/><br/>Inside the <body> tag, create a PHP section and create<br/>several variables regarding on the student information example<br/>Student_FirstName, Student_MiddleName, Student_Lastname, address, course, year, and motto will show as a text in the browser.<br/>


Library Management

Build a Library Management page .

Image:https://assets.ccbp.in/frontend/content/dynamic-webapps/library-management-output-v1.gif

HTTP Requests & Responses


Background Image:

https://assets.ccbp.in/frontend/dynamic-webapps/book-search-bg.png

Books URL: https://apis.ccbp.in/book-store

Example:

https://apis.ccbp.in/book-store?title=IndiaQuery ParameterValuetitleValue of the searchInput element. Example: India


Method: GET

It should pass test conditions:


When a value is provided in the HTML input element with id searchInput and Enter Key is pressed, an HTTP GET request should be made to the Books URL with the query parameter 'title' as the value of the searchInput element


When the HTTP GET request is successful, then the searchResults element should consist of HTML image elements with src attribute value as the value of key 'imageLink' and HTML paragraph elements with text content as the value of key 'author' from HTTP response




Library Management

In this assignment, let's build a Library Management page by applying the concepts we learned till now.

Image:https://assets.ccbp.in/frontend/content/dynamic-webapps/library-management-output-v1.gif

HTTP Requests & Responses

Books URL: https://apis.ccbp.in/book-store

Example:

https://apis.ccbp.in/book-store?title=IndiaQuery ParameterValuetitleValue of the searchInput element. Example: India

Method: GET

It should pass test conditions:


When a value is provided in the HTML input element with id searchInput and Enter Key is pressed, an HTTP GET request should be made to the Books URL with the query parameter 'title' as the value of the searchInput element


When the HTTP GET request is successful, then the searchResults element should consist of HTML image elements with src attribute value as the value of key 'imageLink' and HTML paragraph elements with text content as the value of key 'author' from HTTP response




In this assignment, let's build a Bookmark Maker by applying the concepts we learned till now.use the




Html,css, JavaScript.

Product of array Items

given an array integers,write JS program to get the product of the integers in the given array.

input

the input will be containing single line integers.

output

the output should be single line containing the product as shown in sample outputs.


input1

[1,2,3]

output1

[1 * 2 * 3 = 6]

input2

[-1, -2, -3]

output2

[-1*-2*-3 = -6]


Note: The Output should be displayed as [1 * 2 * 3 = 6]


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString

  .trim()

  .split("\n")

  .map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 let integers = JSON.parse(readLine());


 /* Please do not modify anything above this line */


 /* Write your code here and log the output */

}



CCBP Login

The goal of this coding exam is to quickly get you off the ground with CCBP Login Page

Use the below reference image:(final output)

https://assets.ccbp.in/frontend/content/dynamic-webapps/ccbp-login-op.gif


  1. Test cases:
  2. when the HTML input element with id name lost the focus, if the value of HTML input element with id name is empty, then the text content in the HTML paragraph element with id name ErrMsg should have the error message otherwise it was an empty string
  3. when the HTML input element with id password lost the focus, if the value of HTML input element with id password empty, then the text content in the HTML paragraph element with id name passwordErrMsg should have the error message otherwise it was an empty string
  4. when the HTML button element with attribute type submit is clicked, if the values of the HTML input elements with ids name and password are not empty then the text content in HTML paragraph element with id resultMsg should be displayer "Login Success"

Capital and Country

The goal of this coding exam is to quickly get you off the ground with HTML select element

Reference image:(final output)

https://assets.ccbp.in/frontend/content/dynamic-webapps/capital-and-country-op.gif


Test cases:

  1. page should consist only one HTML span element with a non-empty text content
  2. page should consist only one HTML paragraph element
  3. page should consist of selected as HTML attribute for the HTML option element
  4. JS code implementation should use addEventListenter with event as change
  5. when the value of the HTML select element is changed ,then the text content in the HTML paragraph element should be the selected country name
  6. page should consist only one main heading element
  7. page should consist of HTML select element
  8. page should consist of four HTML option elements with attribute as value.


pass the above all test cases....


Capital and Country

The goal of this coding exam is to quickly get you off the ground with HTML select element

Use the below reference image

https://assets.ccbp.in/frontend/content/dynamic-webapps/capital-and-country-op.gif

Achieve the design with HTML, CSS, and functionality with JS

  • When the capital name is changed in the HTML select element then the text content in the HTML paragraph element should be the country name of the selected capital.

Warning

Do not delete the prefilled code in JS.


Note

HTML option element should consist of selected as an attribute for the value newDelhi by default.

Javascript:

let countries = {

  paris: "France",

  london: "United Kingdom",

  newYork: "USA",

  newDelhi: "India"

};





LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS