A Rift Valley forms from a divergent land boundary. The land is pulled apart which leaves a dip in the land. An example is the Great Rift Valley in Kenya, Africa
A mid ocean ridge forms from a divergent sea boundary. The land is pulled apart but it is in the water so instead of spreading out it pops up and you get a mid ocean ridge. An example is the mid Atlantic ridge.