How do I write a compare and contrast essay? What's the format when writing?

P.S. If you know the answer, may you please tell me step by step how I should go about writing. Thanks.