Forms & Controls

inputmode="url"

Build a form with the HTML form generator

Hints at a keyboard optimized for URLs, often including slash and period shortcuts. Use type=url if the field should receive native URL syntax validation. Global keyboard hint for editable content; the actual keyboard depends on device, locale and browser. It changes neither input type nor validation.

Formal Syntax & Structure

html syntaxhtml
inputmode="url"

Parameters & Attributes

NameTypeDescription
inputmodekeywordHints at a keyboard optimized for URLs, often including slash and period shortcuts. Use type=url if the field should receive native URL syntax validation.

Working Example

Example Snippethtml
<label>  Website  <input type="text" inputmode="url"></label>
HTML Reference