The method of taking a screenshot has not changed between iOS 11 and 12.
If you have a new iPhone, the method may have changed due to hardware differences between older iPhones and newer iPhones.
See here: How to take a screenshot on your iPhone, iPad, and iPod touch - Apple Support