IPv4 addresses and CIDR

An IPv4 address is 32 bits written as four decimal bytes, and a prefix length /n says the first n bits name the network and the rest the host, so 192.168.1.0/24 holds $2^8 = 256$ addresses, 254 usable after the network and broadcast addresses, and borrowing host bits splits a block into smaller subnets.

From Computer Networks and Security.