A subset, as the name implies, is a subgroup of any set. Consider two sets, A and B Mathematically speaking, A will be a subset of B if and only if all the components of A are present in B. We can also say that A is contained in B.