I would like to create an Archer. Should I pick a Ranger or a Fighter?

First of all, building a character that cannot do anything other than ranged attack is a bad idea. In terms of DPS, ranged attack in DDO is really an inferior option compared to straight melee style. If you are new to the game, try straight up melee characters first for the better understanding of the game.

So, fighter or ranger? Originally this question came down to whether you wanted to specialize in pure damage or wanted good variety in skills and spells.

In DDO though, not only are composite bows made for higher strength bonuses not available, rangers at first level get the Bow Strength class feat which adds their Str bonus to bows.

The current mainstream argument seems to be if you should pick a ranger for the powerful capstone enhancement (25% ranged attack speed) or a mildly multi-classed fighter such as a Ftr18/Bard1/Ranger1 to still give yourself access to all the feats of the fighter, including the important weapon specialization, while still getting the Str damage bonus.

Compared to a fighter, the ranger can have a better dexterity, as his class enhancement is for +3 Dex. Level 9 rangers also get the Evasion feat, which makes your high Dex even more useful. Due to the lack of Power Attack or melee for fighting two-handed, an archer will not have too much problem in hitting his target, so strength can be more important than dexterity (at least in the upper levels).

A second ranger-level will give you +1 dex (through enhancement) and rapid shot (1 level for 1 feat in contrast to 2 levels for 1 feat as a fighter).

The fighter is the most versatile damage-dealer of the game; there are many feats which support ranged attacks you won't ever get as a ranger.

Pure Ranger sample build
Elf, Neutral Good Can be human for extra feat and better HP
 * Str 16 (14 if 28 point build)
 * Dex 18 +5 level ups (some points can go into Str, if you are not interested in Epics)
 * Con 14
 * Wis 10
 * Feats:
 * Level 1 Weapon Finesse
 * Level 3 Point Blank Shot
 * Level 6 Weapon Focus: Ranged
 * Level 9 Mental Toughness
 * Level 12 Improved Critical: Ranged
 * Level 15 Toughness
 * Level 18 Power Attack
 * (Human Extra) Improved Critical: Piercing

Ftr18/Brd1/Rng1 sample build
Elf, Neutral Good Human isn't a option because of Arcane Archer enhancements
 * Str 16
 * Dex 18 +5
 * Con 14
 * Int 10
 * Feats:
 * Level 1 Point Blank Shot
 * Level 3 Rapid Shot
 * Level 6 Mental Toughness
 * Level 9 Weapon Finesse
 * Level 12 Toughness
 * Level 15 Toughness
 * Level 18 Toughness
 * Fighter Extra 1 Weapon Focus: Ranged
 * Fighter Extra 2 Weapon Specialization: Ranged
 * Fighter Extra 4 Greater Weapon Focus: Ranged
 * Fighter Extra 6 Greater Weapon Specialization: Ranged
 * Fighter Extra 8 Improved Critical: Ranged
 * Fighter Extra 10 Improved Critical: Piercing
 * Fighter Extra 12 Superior Weapon Focus: Ranged
 * Fighter Extra 14 Improved Two-Weapon Fighting (Two-Weapon Fighting is acquired as a lvl2 Ranger class feat)
 * Fighter Extra 16 Greater Two-Weapon Fighting
 * Fighter Extra 18 Power Attack