Can children take antibiotics, and how do they help fight infections?

Can children take antibiotics, and how do they help fight infections?