The Queen's Gambit starts 1.d4 d5 2.c4 and is played by White. Offer the c-pawn to pull Black's d-pawn away from the centre.
2.c4 attacks d5. If Black's pawn leaves, White gets the centre with e4.
If Black takes (the Queen's Gambit Accepted), e3 and Bxc4 win the pawn back easily.
If Black holds d5 with …e6, develop and pin: Nc3, Bg5, e3, Nf3.
After the opening: Develop smoothly, keep pressure on d5 and castle. In Queen's Gambit Declined structures, the classic plan is the minority attack: b4 and b5 against Black's queenside.
Learn it on the board with the free Opening Trainer: the idea move by move, a quiz on the main line, and the replies players at your level really make, with how to answer each. Then practise it against a bot at three levels. No account needed.