I learned programming through a mixture of Scratch and code.org. Once I "graduated" from those websites, I learned my first professional programming language using W3Schools.
I wouldn't recommend signing up for W3Schools, but the free content is a good enough primer for beginners. (Some of the examples are not idiomatic, though.)
I hope that helps :)