Add "required" attribute to HTML input element

This commit is contained in:
Dorian Niemiec 2024-04-16 21:25:06 +02:00
parent 663e0724ae
commit 65ba90c6db

View file

@ -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}}