Add "required" attribute to HTML input element
This commit is contained in:
parent
663e0724ae
commit
65ba90c6db
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
||||||
<h1>Shorten URL</h1>
|
<h1>Shorten URL</h1>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<label for="url">URL to shorten:</label>
|
<label for="url">URL to shorten:</label>
|
||||||
<input type="url" name="url" placeholder="https://example.com" value="{{url}}">
|
<input type="url" name="url" placeholder="https://example.com" required value="{{url}}">
|
||||||
<input type="submit" value="Shorten!">
|
<input type="submit" value="Shorten!">
|
||||||
</form>
|
</form>
|
||||||
{{shorturl}}
|
{{shorturl}}
|
||||||
|
|
Loading…
Reference in a new issue