In more detail
The mask is a run of one-bits followed by zero-bits. A device applies a bitwise AND of the mask with an address to find the network. Writing the number of one-bits after a slash gives the shorter CIDR form, so 255.255.255.0 is /24.
Example
With the mask 255.255.255.0, the addresses 192.168.1.10 and 192.168.1.200 share the network 192.168.1.0. See How Subnetting Works for the full method.