Search engines are like libraries for the digital age.
Instead of storing copies of books, they store copies of web pages.
When you type a query into a search engine, it looks through all the pages in its index and tries to return the most relevant results.
To do this, it uses a computer program called an algorithm.
Nobody knows exactly how these algorithms work, but we do have clues, at least from Google.