Yellow pavement markings indicate that lanes of traffic are moving in opposite directions.

White lines are used to separate traffic moving in the same direction. Yellow lines are used to separate traffic moving in opposite directions.
DMV Writen Test