subject

Create a web page dynamically show content based on user choice Using conditions and comparisons to take a user choice and dynamically load content on the web page. This can be whatever content and choices your want. An example would be to let the user choose between 3 foods, then render an image and description about that food after they have chosen one.

Requirements:

Use an external CSS & JS file, no internal or inline styles & scripts
Please comment your JS to break down your understanding of what is happening
Use the Window Prompt method (Links to an external site.) to offer the user at least 3 choices
Make sure you normalizes their inputs by converting their string text to lowercase using the string method of the same name
Make sure you create a default choice if the users input does not match any you have defined
Create a JS conditional statement that the compares the user inputs to your choices, depending on the condition render different content on the web page. You can use an if/else statement or switch statement it is up to you
HINT the CSS display property (Links to an external site.) can make this very simple
Web page content
Provide either an image or video for each content choice
Create a description of the content
Create a heading for the content that says "You Chose (input value)"
Style your page
Font, color, spacing and layout should be intentional and not default for all other elements on the page
Use classes for styling
As always no CSS frameworks all custom creations from your original self

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Which of the following kinds of programs displays an online advertisement in a banner or pop-up window on webpages, email, or other internet service? e
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
Ihave an iphone 8plus should i get another phone like samsung note 9 or s9 ? ?
Answers: 2
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
You know the right answer?
Create a web page dynamically show content based on user choice Using conditions and comparisons to...
Questions
question
Biology, 29.07.2019 02:30
Questions on the website: 13722360