The key is to create content others want to link to, aka link bait. The higher quality of content you create, the more likely people will be to share it with others, first through social media, but eventually by creating content of their own linking to you. Link bait is content developed specifically to attract links. Infographics, "how to" guides, and "best of" lists are some of the most frequently shared content on the Web, and so are often created as link bait.
Infographics are particularly popular at the moment (so much so, I believe the market is nearing saturation, so be careful). These are visually pleasing representations of data. They're a step above charts and graphs, usually incorporating cartoon-like characters, silhouettes, or vector art scenery. They must be both pleasing to look at and contain accurate, interesting data which is clarified by the visual enhancements.
"How to" guides answer the obvious, often in steps. How do I build a website? How do I build a deck? People will always need instructions, and "how to" or "how do I" are common phrasings for this style of query. Just don't stick a question mark at the end of "How to build a website" -- that's just a statement. The question form of this phrase is "How do I build a website?" or "Are you wondering how to build a website?"
Finally, "best of" lists are another common form of link bait. You might collect a group of the funniest cat pictures from I Can Has Cheezburger, the most useful SEO tools on the Web, or the most valuable marketers to follow on Twitter. There is a lot of content online, and people are constantly looking for quick and easy distillations of their favorite subjects to help them quickly digest top quality content.