How to specify one or more forms the keygen element belongs to ?
The task is to specify one or more forms the keygen element belongs to. You can easily do this by using the form attribute which is an attribute of keygen element. form element is used to create an HTML form for user input. keygen element is used to specify a key-pair generator field in a form and used to provide a secure way to authenticate users. It is not supported in Internet Explorer. form attribute is used to specify one or more forms the <keygen> element belongs to.
- Create the HTML page with a form element with a specific id name.
- Create a keygen element with the form_id.
Output: The keygen element is a part of the form, but it was created outside the form element.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.