For iPhone X, XR, XS, or XS Max:
Press the Side button and the Volume Up button simultaneously to take a screenshot.

For all other iPhones:
Press the Side button and the Home button simultaneously to take a screenshot.