20 years ago I'd have still said books are better, but today I prefer websites -- or even pdf's of books -- over actual print for one simple reason.
SEARCH. Good old ^F.
It's also part of why I dislike videos for learning, you can't search them and they're hard to refer back to. Part of why when people refer me to a video (which I find utterly useless in most cases for learning) the first words out of my mouth are "Do you have a transcript?"