This article is meant to provide the basic for starting to invest.
Since there are tax benefits for the first of these two options, it is usually the best option to put your money there first.
If you can't max out your 401k -- you should at least get the maximum match from your employer. This is basically free money. Tax Free.