Knowledge check: Form submission

Knowledge check: Form submission

  1. Which form attribute is used to specify the address to which the form data will be submitted to?

    • method

    • action

    • src

  2. Which HTTP method will be used to send data for the following form?

     <form>
           <button type="submit">Submit</button>
     </form>
    
    • DELETE

    • POST

    • PUT

    • GET

  3. When using the HTTP POST method to submit form data, how is the data transmitted to the server?

    • Via the address in the URL bar of the web browser

    • Via the body of the HTTP request

  4. Your web browser is currently at the address https://meta.com/profile. When the following form is submitted, what address will it submit to?

     <form>
           <button type="submit">Submit</button>
     </form>
    
    • https://meta.com/login

    • https://meta.com

    • https://meta.com/profile

  5. Your web browser is currently at the address https://meta.com/profile. When the following form is submitted, what address will it submit to?

     <form action="/login">
            <button type="submit">Submit</button>
     </form>
    
    • https://meta.com

    • https://meta.com/login

    • https://meta.com/profile/login

    • https://meta.com/profile

  6. Your web browser is currently at the address https://meta.com/profile. When the following form is submitted, what address will it submit to?

     <form action="login">
            <button type="submit">Submit</button>
     </form>
    
    • https://meta.com/profile

    • https://meta.com/login

    • https://meta.com

    • https://meta.com/profile/login

  7. The HTTP DELETE method can be used for form submission.

    • True

    • False

  8. There are several ways to secure transmitting form data to the web server. Which of the following will help secure the data? Select all that apply.

    • Send the data using HTTPS

    • Send the data using the HTTP GET method

    • Send the data using the HTTP POST method