{"id":355902,"date":"2021-11-05T07:43:25","date_gmt":"2021-11-05T14:43:25","guid":{"rendered":"https:\/\/css-tricks.com\/?p=355902"},"modified":"2021-11-05T07:43:28","modified_gmt":"2021-11-05T14:43:28","slug":"enterkeyhint","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/enterkeyhint\/","title":{"rendered":"enterkeyhint"},"content":{"rendered":"\n

I only just recently learned the enterkeyhint<\/code> attribute on form inputs was a thing! It seems like kind of a big deal to me, as crafting HTML form markup is a decent slice of a front-end developer’s life, and this attribute could (should?<\/em>) be used on nearly every input. <\/p>\n\n\n\n\n\n\n\n

The enterkeyhint<\/code> attribute changes the action key on a mobile keyboard to change the text\/affordance.<\/strong> Stefan Judis spells it out nicely in this tweet from 2020:<\/p>\n\n\n\n

\n

Safari now supports `enterkeyhint`. \ud83d\udc4f

I always like it when the enter key gives me more context. \ud83d\udc47

\ud83d\udd17 Spec: https:\/\/t.co\/IOQkUsjB6f<\/a>#devsheets<\/a> pic.twitter.com\/7HHX77Jow7<\/a><\/p>— Stefan Judis (@stefanjudis) April 14, 2020<\/a><\/blockquote>