The dosage of diazepam for children varies based on the child's age, weight, and the specific medical condition being treated. For example, in the management of acute seizures, the rectal gel dosage is typically calculated based on the child's weight. It is crucial to follow the prescribing physician's instructions carefully to ensure safety and efficacy.