Skip to main content

Marc Amos

Hi, Iā€™m Marc

Iā€™m a husband, dad to three boys, and front-end web developer at The Outfit

Learn more about me, check out my journal, or send me an email:

Elsewhere: GitHub / Twitter

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.