You're tasked with creating a login form that should securely transmit user credentials. What attributes and input types would you use to ensure secure transmission?
- Using type="hidden" for both username and password.
- Using type="text" for both username and password fields.
- Using type="text" for username and type="password" for the password with a standard form submission.
- Using type="text" for username and type="password" for the password, combined with HTTPS for form submission.
The type="password" attribute ensures that the password is obscured on the screen. However, secure transmission also requires HTTPS, which encrypts the data sent from the browser to the server, ensuring that the credentials aren't readable if intercepted. Simply using the type="password" is not enough as it only hides the password from onlookers but doesn't encrypt the data in transit.
Loading...
Related Quiz
- The _____ element is commonly used to define navigational links in HTML.
- HTML comments can be used to _____ sections of code for testing purposes.
- How do the sizes of the headings h1 to h6 compare?
- To merge two or more cells into a single cell horizontally, you use the ______ attribute in a td or th element.
- What attribute is used in a hyperlink to define the email address that the email will be sent to?