Skip to main content

Add DuckDuckGo-powered search to your website

Written on 7/7/2020 and tagged: web development

HTML that enables your visitors to search your website via DuckDuckGo.

  1. Copy and paste the HTML below
  2. On the second line, change the value attribute to your own URL
<form method="get" action="">
  <input type="hidden" name="sites" value="">
  <label for="search">Search</label>
  <input type="search" id="search" name="q">
  <button type="submit">Go</button>

Try before you buy copy! The search box, on this website, uses the very same HTML.