How to Embed the Search Box on Your Website

Back to FAQ

Place a Congress.gov search box like this on your website:

Copy this code and insert it where you would like the search box to appear:

<p><form method="get" target="_top" role="search" action=" https://congress.gov/search" ><div id="search-wrapper" class="search_wrapper"><div class="search_formats"><select id="search-format" name="search-source"><option value="current-legislation">Current Legislation</option><option value="legislation">All Legislation</option><option value="all-sources">All Sources</option><option value="--" disabled="disabled">--</option><option value="members">Members</option><option value="congrecord">Congressional Record</option><option value="comreports">Committee Reports</option><option value="nominations">Nominations</option><option value="treaties">Treaty Documents</option><option value="executive-communications">Executive Communications</option><option value="executive-communications">Executive Communications</option></select><input id="search" type="text" class="locsuggest" name="q" placeholder="Examples: hr5, sres9, &quot;health care&quot;" value=""><button class="search_submit" id="search-submit" type="submit">GO</button></div></div></form> </p>