Name

url

Type

input

Synopsis

How to render a url input field

Description

input elements of type="url" lets users enter or edit a URL

Parameters

type="url"

Example

<form action="get">
  <label for="yoururl">Your website: </label>
  <input type="url" name="website-url" id="yoururl" pattern="https?://.*" size="30" value="https://" />
  <input type="submit" value="Go" />
</form>

Note

Links

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url