Attack and king safety
Use the pawn hook
Attack the advanced pawn that can make contact now. At the same distance from the king, the h-pawn is more effective against ...g6 than against an intact g7-pawn.
Worked example
Position in text
White to move. White: pawn h4, king c1, rook h1. Black: king g8, pawn f7, pawn h7, pawn g6.
FEN: 6k1/5p1p/6p1/8/7P/8/8/2K4R w - - 0 1
After 1.h5, White threatens hxg6, which allows the black f- or h-pawn to recapture and changes the shelter. If Black chooses 1...gxh5, 2.Rxh5 brings the rook up to the half-open h-file. The g-pawn’s earlier advance gave White a point of contact; neither side needs to wait for another pawn push before trading.
A plausible mistake
Assuming h5 opens a file by itself is a mistake. If the defender refuses the capture, inspect what your pawn can actually take and how the opponent can recapture.
Try it yourself
Position in text
White to move. White: pawn h4, king c1, rook h1. Black: king g8, pawn f7, pawn g7, pawn h7.
FEN: 6k1/5ppp/8/8/7P/8/8/2K4R w - - 0 1
Play 1.h5 on the second board. Can either the h5-pawn or the g7-pawn capture the other immediately? How can Black create contact if it wants to?
Check your answer
No: h5 captures toward g6, and g7 captures toward h6. A move such as 1...g6 creates contact, but Black is not obliged to play it. Against an intact cover White should consider whether another move would create a more direct threat.