HTML enterkeyhint Attribute Last Updated : 30 Aug, 2024 Comments Improve Suggest changes Like Article Like Report In this article, we will know the entrykeyhint attribute in the HTML. The enterkeyhint attribute is an enumerated attribute that specifies what action label to present for the enter key on virtual keyboards. This is the global attribute & allows authors to customize the presentation of the enter key in order to make it more helpful for users.In our daily life, we use smartphones. We have noticed the enter key of the phone's keyboard as it changes always according to the action to be performed like when we are typing, sometimes it behaves like the enter key, and also the same key sometimes behaves as a search button on search engines, etc. This all happens because of the enterkeyhint attribute. There are so many values present in the enterkeyhint attribute that can work according to the value that we specify there.Syntax:<input enterkeyhint = "values">Attributes values:done: When there is nothing more to input and the input method editor will be closed.enter: When there is more to write but in a new line.go: When we have finished writing the form and want to go on the next target or form.search: When we have to search anything after typing then we will use this.send: It is used for sending messages.next: It will take the user to the next field that will accept text.previous: It will take the user to the previous field that will accept text.Example: This example describes the enterkeyhint attribute & its usage by specifying the different values. HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML enterkeyhint attributes</title> </head> <body> <form> <input placeholder="Enter button will change to Next" enterkeyhint="next"> <input placeholder="Enter button will change to previous" enterkeyhint="previous"> <input placeholder="Enter button will change to enter" enterkeyhint="enter"> <input placeholder="Enter button will change to done" enterkeyhint="done"> <input placeholder="Enter button will change to search" enterkeyhint="search"> <input placeholder="Enter button will change to go" enterkeyhint="go"> <input placeholder="Enter button will change to send" enterkeyhint="send"> </form> </body> </html> Output: As you can notice in the output, every time the enter key icon changes according to its attribute.outputSupported browsers:Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML enterkeyhint Attribute iamabhijha Follow Improve Article Tags : HTML HTML-Attributes Similar Reads HTML contenteditable Attribute The HTML contenteditable attribute determines if element content is editable. It defaults to inheriting from the parent element. As a global attribute, it allows versatile content manipulation within the webpage directly.Syntax<element contenteditable = "true|false">Supported Tags It supports 2 min read HTML onkeyup Event Attribute The HTML onkeyup event attribute executes JavaScript code when a user releases a key after pressing it within an input field or textarea, enabling dynamic responses to keyboard input. It also enables real-time interaction with user input in web forms or applications and is commonly used for live sea 2 min read HTML oninput Event Attribute This attribute works when it gets user input value. This attribute mainly fires when the user change the value of <input> and <textarea> element. This attribute is quite similar to onchange attribute but the basic difference is that the oninput event attribute occurs immediately when the 1 min read HTML onkeydown Event Attribute The onkeydown event attribute works when the user presses any key from the keyboard. The onkeydown event is triggered when the down key is pressed down and used for capturing and responding to key events. Syntax: <element onkeydown = "script">Supported Tags: It supports all HTML elements EXCEP 2 min read HTML <meta> content Attribute HTML <meta> content Attribute provides the value associated with either the http-equiv or name attribute, offering metadata information such as character encoding, viewport settings, or other document-related data. Syntax: <meta content="text">Attribute Values: It contains single-value t 1 min read Like