Both approaches have their merits, but learning by doing is generally more effective for web development. Watching videos can provide valuable insights, but hands-on practice with programming languages and web page creation reinforces the concepts and helps you retain the knowledge better.