Bacteria can be classified in several ways based on their morphology, staining properties, motility structures, metabolic properties, temperature and pH optima, salt and oxygen requirements. Morphological classification divides bacteria into cocci, bacilli, spirochetes, mycoplasma and actinomycetes. Metabolic classification distinguishes phototrophs, chemotrophs, autotrophs and heterotrophs. Physiological classification separates bacteria based on their optimal growth temperatures, pH levels, salt concentrations and oxygen requirements.