how do search engines work

how can you get found online? how does google work? how do search engines work