Tenzin,
There are two parts to a site search function - the front-end (what the user sees on the website) and the back-end (what happens when you submit a search)
On the front-end a search is basically an html form with a input field and a submit button so you should read up on those HTML tags. (http://www.w3schools.com/ is a good site for the basics).
On the back-end you'll need to receive the search request, deal with it and return a results page. If your back-end doesn't have built in search then here's a good overview of the pros and cons of three common options (https://www.thesitewizard.com/archive/searchengine.shtml) which include installing a search script (Perl/PHP), a free or third party hosted search service, using the Google custom engine.
From a design perspective you'll want your search box to be easy to find and accessible (take a look at: https://designshack.net/articles/inspiration/what-makes-a-great-search-interface/) using proper semantic markup (take a look at: http://stackoverflow.com/questions/4509761/whats-the-best-semantic-way-to-wrap-a-search-area).
There are two parts to a site search function - the front-end (what the user sees on the website) and the back-end (what happens when you submit a search)
On the front-end a search is basically an html form with a input field and a submit button so you should read up on those HTML tags. (http://www.w3schools.com/ is a good site for the basics).
On the back-end you'll need to receive the search request, deal with it and return a results page. If your back-end doesn't have built in search then here's a good overview of the pros and cons of three common options (https://www.thesitewizard.com/archive/searchengine.shtml) which include installing a search script (Perl/PHP), a free or third party hosted search service, using the Google custom engine.
From a design perspective you'll want your search box to be easy to find and accessible (take a look at: https://designshack.net/articles/inspiration/what-makes-a-great-search-interface/) using proper semantic markup (take a look at: http://stackoverflow.com/questions/4509761/whats-the-best-semantic-way-to-wrap-a-search-area).