apps/duckduckgo: fix accessibility problems

reported by WAVE: https://wave.webaim.org
This commit is contained in:
khm 2020-05-26 21:39:54 -07:00
parent 1ef0fdb99f
commit e5a466b8c5
2 changed files with 4 additions and 3 deletions

View File

@ -19,9 +19,10 @@ fn duckduckgo_init {
fn duckduckgo_body {
echo '
<h1>Site search</h1>
<h3>using DuckDuckGo</h3>
<h2>using DuckDuckGo</h2>
<form action="/_search/" method="POST">
<input type="text" name="q" placeholder="Search text...">
<label for="searchtext">Site search:</label>
<input type="text" id="searchtext" name="q" placeholder="Search text...">
<input type="submit" value="Search">
</form>'

View File

@ -1,3 +1,3 @@
<div><a href="http://werc.cat-v.org">Powered by werc</a></div>
<div><form action="/_search/" method="POST"><input type="text" name="q" placeholder="Site search..."><input type="submit" display="Search"></form></div>
<div><form action="/_search/" method="POST"><label for="searchtext">Site search:</label> <input type="text" id="searchtext" name="q" placeholder="Enter search text..."><input type="submit" display="Search"></form></div>