Bacteria are classified based on their phenotypic and genotypic characteristics. Phenotypically, bacteria are classified based on staining reactions like Gram staining which separates bacteria into gram-positive and gram-negative groups. Morphological characteristics like shape (cocci, bacilli, spiral) are also used. Genotypically, DNA-DNA hybridization and G+C content are used. Gram-positive bacteria are further classified based on whether they form spores, like Bacillus and Clostridium. Environmental factors like temperature, oxygen requirements, pH and salt tolerance also determine bacterial classification.