Trail Running Technique: Foot Strike, Downhills, and Confidence on Rough Terrain

What’s the best technique to use when running on trails? By this I mean, I have noticed some people run more on their toes than heel strike. Is this just personal preference or style? And should it change when going up and downhill? Or on rough terrain?