I remember stumbling into coding by way of CSS and HTML. For advanced functionality well there was "scripts" that you copy and paste in and magically worked. The ultimate boss came when stumbling onto "php scripts" that you needed some particular cgi-bin thing to run. Follow the instructions, paste in the php script and it worked! This PHP stuff led to Wordpress. Follow those instructions and WOW mind blown, full end-to-end site with admin, login, database, CRUD, and it looked beautiful.
The problem was I couldn't actually understand any of the code. I learned CSS and HTML!
After many trials, I used what I knew and realized well whatever this PHP code is doing, I'm going to put it in a div with style="border:5px solid red" and see what it does that way.
Fast forward 2, 5, 10, 12 years and that's how I learned to be a programmer.