Global Attributes
HTML enterkeyhint attribute
Hints which action label or icon a virtual keyboard should show for Enter. It does not implement form submission or navigation. Applicability: global HTML attribute, subject to element-specific restrictions and browser support.
Formal Syntax & Structure
html syntaxhtml
enterkeyhint="search"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| enterkeyhint | enumerated: enter, done, go, next, previous, search, send | Hints which action label or icon a virtual keyboard should show for Enter. It does not implement form submission or navigation. |
Working Example
Example Snippethtml
<label> Query <input type="search" enterkeyhint="search"></label>Browser Compatibility
Minimum supported versions across modern rendering engines
Chrome
77
Yes
Firefox
94
Yes
Safari
13.1
Yes
Opera
66
Yes
Checked desktop BCD snapshot: global enterkeyhint attribute. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted. Actual virtual keyboard labels depend on platform.
HTML Living Standard