The come-out roll
Each round starts with a come-out roll. 7 or 11: pass line bets win. 2, 3 or 12 (craps): pass line bets lose. 4, 5, 6, 8, 9 or 10: that number becomes the point.
Rolling for the point
Once a point is set, the shooter keeps rolling. If the point comes up before a 7, pass line bets win. If a 7 comes first ("seven out"), pass line bets lose and the round ends.
Main bets and house edge
Pass line: point rolled before a 7, house edge 1.41%. Don't pass: 7 rolled before the point, house edge 1.36%. Odds (behind pass or don't pass): pays true odds once a point is set, house edge 0%. Place 6 or 8: 6 or 8 before a 7, house edge 1.52%. Field: next roll is 2, 3, 4, 9, 10, 11 or 12, house edge about 2.8%–5.6%. Any 7: next roll is 7, house edge 16.67%.
The odds bet
After a point is set, you can add an odds bet behind your pass line bet. It pays true odds: 2 to 1 on 4 or 10, 3 to 2 on 5 or 9, and 6 to 5 on 6 or 8. It lowers the combined house edge on your bets, but you still need a pass line bet to place it.
Further reading
See also: House edge explained, How online casinos work.