How to take a screenshot on iPhone with and without a home button

How to take a screenshot on iPhone with and without a home button