Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML disabled Attribute

Improve Article
Save Article
  • Last Updated : 05 Oct, 2021
Improve Article
Save Article

The HTML <keygen> disabled attribute is a boolean attribute that indicates whether the <keygen> element is disabled or not. It is used to keep a user from using an input field until some conditions would be applied to it. 

Note: We can use JavaScript to change the value of the disabled <keygen> element.


<keygen disabled>

Example: The below code illustrates the disabled attribute. 


<!DOCTYPE html>
        <h1 style="color:green;">
        <h2>HTML Keygen disabled attribute</h2>
            Username: <input type="text" name="uname">
            Password: <input type="text"><br>
            Encryption Element Value:
            <keygen form="myGeeks" name="secure" disabled>
            <br><input type="submit">


Supported Browsers: 

  • Google Chrome
  • Firefox
  • Opera
  • Apple Safari
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!