How to make a functionnal searchbar?


During my journey to become a freelance web developer, I’m trying to make a searchbar for a website.
I have some difficulties finding informations on how to make a searchbar that will search the entire web sites wich means different html pages.

I’m not sure how to do it, am i supposed to use some php or other backend language?

Thanks for your help!