There are three stretching techniques to consider: static, ballistic, and dynamic.
- Static stretching :-Static stretching consists of holding the stretch position for 10 to 30 seconds. The degree of stretch has to be modulated according to your level of flexibility. If you are not flexible, do not stretch too much or for too long. As your flexibility improves, you can intensify the degree of stretching

2. Ballistic stretching: Ballistic stretching combines small bursts of stretching with small recoils of muscle contractions. You can repeat this combination of small, back and forth movements for 10 to 30 seconds. We do not recommend this form of stretching to beginners; it is a dangerous technique
that allows you to stretch beyond your natural flexibility.

- Dynamic stretching: Dynamic stretching uses movement, often sport specific movement, to achieve a stretch. It is different from static stretching in that an end position isn’t held; it is different from ballistic stretching in that there is no bouncing motion that can force the stretch beyond your natural flexibility. Walking lunges, arm circles, and leg swings are example of this type of stretch

Reference and links:
https://www.webmd.com/fitness-exercise/features/how-to-stretch
