I know it is cool to hate w3schools and I don't use it personally, but seriously, can we get over ourselves here?
The reason why w3schools rank highly and have done for years is because for a large segment of users it works.
And as someone else has pointed out the official documentation is often atrocious: both Python and Java online docs are close to worthless if you have a decent ide that shows you method signatures.
PHP docs used to be a lot better in that they described what was going on and why and had comment sections that I imagine they also used as feedback to improve the docs.
I haven't used PHP or Python for years but today there is Spring docs to drive me mad: telling me all the things I know and not telling me anything about how to interpret a Spring project.
Spring is infinitely flexible and there are more ways to configure Spring than there are Spring programmers since most of them can't even configure two projects the same way ;-)