I'm looking for the embed code to install a search bar on the header of my site

I’m looking for the script or HTML code that can be used to add a search bar to the header of my site. Any help would be appreciated. Thanks!