# Knowledge check: User input and forms

1. **When the user clicks the submit button of the following form, what will happen? Select all that apply.**
    
    ```xml
    <form method="POST">
       <input type="text" name="username">
       <input type="password" name="password">
       <button type="submit">Log In</button>
    </form>
    ```
    
    * <mark>It will use the resources of the server unnecessarily.</mark>
        
    * <mark>The server-side will prevent the processing of the request if server-side validation is implemented.</mark>
        
    * The browser will block the form submission.
        
    * <mark>The browser will still allow form submission.</mark>
        
2. **What attribute should be added to the** `<input>` **element to ensure the user provides a response?**
    
    * autocomplete
        
    * <mark>required</mark>
        
    * placeholder
        
    * pattern
        
3. **What is the risk of using the HTTP GET method for form submission? Check all that apply.**
    
    * <mark>The web address may exceed the maximum length accepted by the web server.</mark>
        
    * <mark>The form data will be stored in the browser history.</mark>
        
    * The form data will be sent insecurely.
        
4. **Which of the following is a framework that provides CSS rules for forms and visual consistency? Check all that apply.**
    
    * <mark>Bootstrap</mark>
        
    * <mark>Tailwind CSS</mark>
        
    * Boilerplate
        
    * <mark>Foundation</mark>
        
5. **The web browser sends a \_\_\_\_ to the web server, and the web server sends back a \_\_\_\_. This is done by means of the HTTP \_\_\_\_ method which accepts values as part of the URL or the HTTP \_\_\_\_ method which submits the values in our form as part of the request.**
    
    **Fill in the blank with the correct order from the options below:**
    
    A. GET
    
    B. POST
    
    C. Request
    
    D. Response
    
    * ABCD
        
    * ABDC
        
    * <mark>CDAB</mark>
        
    * CDBA
        
6. **Which of the following values can fill the blank?**
    
    **The form action attribute consists of \_\_\_\_\_ as values. Select all that apply.**
    
    * <mark>An absolute URL</mark>
        
    * form status
        
    * <mark>Relative URL</mark>
        
    * HTTP Requests
