diff --git a/index.php b/index.php
index d23eaa005bf1e1647ae1c55b5a6b9a23e5e43151..ef563c1cc364878b134aba49765705e662d45c0d 100644
--- a/index.php
+++ b/index.php
@@ -25,7 +25,7 @@
     <main>
       <div>
         <label for="searchinput">Search language or comment syntax:</label>
-        <input type="text" id="searchinput" onkeyup="searchSyntax()" title="Type in a scripting language or comments syntax" placeholder="search string …" autofocus>
+        <input type="search" id="searchinput" onkeyup="searchSyntax()" onsearch="searchSyntax()" title="Type in a scripting language or comments syntax" placeholder="search string …" autofocus>
         <table id="resulttable">
           <thead>
             <tr>
diff --git a/style.css b/style.css
index 7ab7b863cdd7366e253aebe3d011847888c052e0..8dea66d595fed53b58d37a660ae1ac4c469b006c 100644
--- a/style.css
+++ b/style.css
@@ -97,7 +97,7 @@ input {
   box-sizing: border-box;
 }
 
-input[type="text"] {
+input[type="search"] {
   width: 70ch;
   max-width: calc(100vw - 8vmin);
 }