You may have read that at one time there were five separate 10-dimensional superstring theories, and then in the 1990s they were all shown to be related to each other by something like a change of coordinates. The 11-dimensional "M theory" is also part of that web of relationships, but it's different in several ways. First, it's 11-dimensional - the relationship to the 10-dimensional theories only shows up in limits where one of the 11 dimensions is small. Second, instead of having fundamental strings, it has fundamental "membranes", 2- and 5-dimensional objects (one way to get a string from an M2-brane is to have one of the brane's dimensions extended along the small 11th dimension, so it only has one big dimension left in the 10-dimensional approximation). Third, unlike the superstring theories, the actual equations for M theory are not known very well, although there is an approximation called "Matrix theory", and the low-energy limit (in which strings and branes are treated as particles) is a well-known and much older theory, 11D supergravity.
So the perspective now is that there is only one theory, but in different limits or approximations it looks like M theory or like one of the superstring theories. At one time people referred to the overall united theory as M theory, but "string theory" won out as the overall name (even though there are membranes too), and M theory is now just the name for the 11-dimensional form of "string theory".