"Computer science" is a misleading search term for learning about web development, that's likely to point you towards things like algorithms & big O notation. By all means, learn that stuff too (it
will make you a better programmer), but also look into the protocols and conventions the web is built on.
For example, here's RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt), the primary definition for HTTP/1.1. Try writing a web server just using sockets in Python/Ruby/whatever, based off of that. Don't worry about performance, handling more than one client at a time, or covering the complete spec, just look at how the essentials fit together.
I learned a LOT doing this (in Lua); I learn best building from the bottom up. If you learn better top down, try digging down from whatever platform(s)/framework(s) you're using now.
If you want to dig deeper, look into distributed systems, Unix network programming (Stevens's books are great), and let your interests lead you from there.