How to specify that a keygen element should be disabled in HTML ? Last Updated : 17 Mar, 2021 Comments Improve Suggest changes Like Article Like Report The <keygen>element in HTML helps in encryption key generation so that data can be transferred between the server and client securely. This encryption may affect the user experience and reduce website performance in the case of users with fewer system requirements. This can cause issues in the user interface and may lead to confusion in the usage of the website. Therefore, the need may arise to disable it in unnecessary situations. This can be achieved by using the disabled attribute of the <keygen> element. This will prevent the element from generating the key-value pairs it is supposed to generate. Syntax:<keygen name="security" disabled> Example: In the below example, the <keygen> element is disabled using the disabled attribute. HTML <html> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <h3>Disabling the keygen element</h3> <!-- Form for enclosing all the available inputs --> <form method="post" action="/"> <label for="name">Your username</label> <input type="text" name="name"> <br><br> <label for="name">Your password</label> <input type="password" name="pass"> <br><br> <!-- Disable the <keygen> element using the disabled attribute --> Encryption Element Value: <keygen name="security" disabled> <br><br> <input type="submit"> </form> </body> </html> Output: Comment More infoAdvertise with us Next Article How to specify that a keygen element should be disabled in HTML ? K krishnamadugu Follow Improve Article Tags : Web Technologies HTML HTML-Questions Similar Reads How to specify that an input element should be disabled? The disabled attribute for <input> element is used to specify that the input field is disabled. A disabled input is un-clickable and unusable. It is a boolean attribute. The disabled <input> elements are not submitted in the form. Syntax:<input disabled>Example: In this example, to 1 min read How to specify that an option should be disabled in HTML5 ? The <select> tag is used to create a drop-down list in an HTML document. Generally, it is used in the forms when some data is to be collected from the user. By default, all the values or options can be chosen or selected from the drop-down list created using the <select> element. However 2 min read How to specify that an option-group should be disabled in HTML5 ? We will use <optgroup> and <option> tags to create an option-group list and use the disabled attribute with <optgroup> to create a disabled option-group list. The <optgroup> tag is used to create a group of the same category options in a drop-down list. The <optgroup> t 1 min read How to specify that a group of related form elements should be disabled using HTML? In this article, we will learn how to specify that a group of related form elements should be disabled using HTML. When the disabled attribute is present, it specifies that the input field is disabled. We can not write any content in a disabled input field. Approach: We will be using the disabled at 1 min read How to specify that a button should be disabled using HTML5? In this article, we specify a disabled Button by using a disabled attribute in a <Button> Element. A disabled button is un-clickable and unusable. It is a boolean attribute. Syntax: <button disabled></button> Example: html <!DOCTYPE html> <html> <head> <title 1 min read Like