How to increase my Web hacking Skills

Hello, I’m a student currently studying penetration testing. I feel that my skills in web hacking are not very strong, so I’ve been studying it, but I’m not sure how to improve my abilities in white-box penetration testing. Also, is solving wargames the only way to improve my web hacking skills?