If an oncoming driver is heading toward you in your lane, you should:

If another vehicle is approaching you head-on in your lane, you should first honk your horn to attract attention. If the other driver does not move over, try to escape to the right. If you swerve left and the other driver corrects at the last instant, you will still crash. If a collision is unavoidable, brake firmly and steadily. Every mile per hour you slow down will reduce the impact.
DMV Writen Test