Question: Create a homescreen.html page Create a css folder and a file in it called styles.css Create a js folder and a file called starter.js within
Create a homescreen.html page
Create a css folder and a file in it called styles.css
Create a js folder and a file called starter.js within the folder
Create an images folder and add your images within the folder. Add at least images
On the html page, in the head, add a reference to your css file and a script tag referencing your JavaScript file
Add an h to the body and center the tag in css and add text to it about your web page
In css have all images use a border of at least pixels and any color you like
Below the h tag, add a div called container and set its width to and center it using css
Below the div, add an input tag with the ID of txtpredict
Add an img tag below the text box and give it an ID of imgpredict
In JavaScript, create an add event listener for the key up so when the user starts to type in the txtpredict input field then it will trigger the event
In the key up event, have it check to compare if what they typed matches one of the images. You could use an array and add the image names and extensions to it or use any other method that you like to check for a match. If it matches, then display the image you typed in If it does not match, display a plain not found image
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
