update index.html: change form element from div to form for improved semantics and functionality

This commit is contained in:
pacnpal
2025-02-15 23:38:06 -05:00
parent 7090c3c3f5
commit 40f04eb5d2

View File

@@ -246,7 +246,7 @@
<section aria-labelledby="converter-description">
<p id="converter-description">Convert protocol URLs (like Steam invites) to shareable HTTPS links that work on any platform.</p>
<div role="form" aria-labelledby="form-title">
<form aria-labelledby="form-title" onsubmit="event.preventDefault(); convertUrl();">
<h2 id="form-title" class="visually-hidden">URL Converter Form</h2>
@@ -257,9 +257,9 @@
placeholder="steam://joinlobby/123456/987654321"
aria-label="Enter Steam lobby URL to convert"
autocomplete="off" />
<button onclick="convertUrl()" aria-label="Convert URL">Convert</button>
<button type="submit" aria-label="Convert URL">Convert</button>
</div>
</div>
</form>
</section>
<output id="result" aria-live="polite"></output>