What is a computer network?
A computer network is a set of devices connected so they can exchange data. The internet is a network of networks, held together by shared protocols, chiefly TCP/IP, which define how data is addressed, split into packets, routed and reassembled.
Networking is organised in layers. Each layer solves one problem and relies on the layer below: Wi-Fi doesn't need to know about web pages, and a browser doesn't need to know about radio waves.
Wrap a web request, layer by layer
On the way out, each layer adds its own header, like putting a letter in an envelope, then in a parcel, then on a lorry. The receiver unwraps them in reverse.
Split an address into network and host
An IPv4 address is 32 bits. The prefix length (the /24 in CIDR notation) says how many leading bits name the network; the rest number the devices on it. Slide it and watch the split move.