I have been practicing Web Development for 3 years.
Along the way, I have done all sorts of things to try to get better:
Read Learning PHP, MySQL, & Javascript by Robin Nixon
Listened to the PHP Ugly Podcast
Enrolled in a Full Stack Coding Bootcamp
And all of these things helped me a ton.
But if I had to start all over again (as a beginner), this is the simple framework I wish I had for learning how to code:
Step 1: Be Patient
Web Development requires a set of skills that take a very long time to learn - there is no fast track - just practice.
Step 2: Focus On One Thing At A Time
You may be tempted to learn 3 or 4 different coding languages and frameworks, but if you focus on just one language and learn it very well - you will be able to easily pick up those other interests much faster later on.
Step 3: Practice, Practice, Practice
Coding is skill and therefore can only be learned through repetition - the more time you spend coding, the better you will get.
When you're first starting out, this is all that matters.