Writing for search engines

How to make the most of 'the algorithm' and optimise your writing for search engines.