How do U Write a Bibliography?

First write all the books, papers and websites that you have used for your essay. Then write the bibliography in the alphabetical order. First all the authors and then all the websites.