Question: Using Javascript, HTML, CSS: 1. In `index.html` we need a Form that uses POST to submit its data to the URL `/s`. The form should
Using Javascript, HTML, CSS:
1. In `index.html` we need a Form that uses POST to submit its data to the URL `/s`. The form should have the following controls:
a. Username, which should be an email address and should get the focus when the page loads
b. Search Query, which should hold the search terms the user wants to perform
c. Resource Type, which should be: book, ebook, or video. Don't allow the user to enter anything else.
d. Is Available, which should be true/false, indicating that only available resources should be returned
e. Submit button
2. Choose the most appropriate type of input control for each of the above.
3. We need labels for each of the input controls above.
4. We need all necessary input attributes for the controls above. Some attributes to consider: id, name, minlength, maxlength, pattern, placeholder, required, size, tabindex. NOTE: not all attributes are required for every control, so pick only what is needed.
5. We need CSS to style the form and input controls so that they are easy to see and use. We could have our own styles in `styles.css` or use a CSS framework like Bootstrap. Form must look professional so that users will trust it.
Step by Step Solution
3.47 Rating (154 Votes )
There are 3 Steps involved in it
Heres the solution using HTML CSS and JavaScript 1 indexhtml html DOCTYPE html html langen head meta charsetUTF8 meta nameviewport contentwidthdevicew... View full answer
Get step-by-step solutions from verified subject matter experts
