How to do a Bibliography?

To write a bibliography you should know that items in a bibliography are alphabetically ordered by author, and, if no author, then by title. Then you need to decide if its a website, book, encyclopedia article, newspaper, etc.,