Which slaves were freed as a result of the Emancipation Proclamation?

A) only slaves who lived in Confederate states which had been captured by the Union

B) only slaves who lived in states that were in rebellion against the Union

C) only slaves living in Union states

D) all slaves were free, regardless of the states they lived in