Google "Search Engine Optimization", the good ones will come up first.
SEO - the basic is having the right keywords placed in the right place with the right "decorations" (header, bold, italic, etc..). That is the basic behind
SEO, but it's also like saying the atom is the basic behind chemistry.
Quality inbound links also help.