Represents <input>
element of type "url" that lets the user enter and edit an URL. Documentation:
Widget:
use Yiisoft\Form\Field\Url;
echo Url::widget()
->name('UrlForm[site]')
->value('')
->label('Your site')
->hint('Enter your site URL.')
->inputId('urlform-site');
Result will be:
<div>
<label for="urlform-site">Your site</label>
<input type="url" id="urlform-site" name="UrlForm[site]" value>
<div>Enter your site URL.</div>
</div>