Stridor means the upper airway is narrowed. The child's age and how quickly it started give the cause.
Croup causes stridor from laryngeal oedema, usually due to parainfluenza virus, at 6 months to 3 years, often in autumn, with a barking cough worse at night. Acute epiglottitis is caused by Hib, affects 2–6-year-olds, and has become rarer with vaccination; it presents rapidly with a toxic child, stridor and drooling. An inhaled foreign body causes sudden coughing, choking and stridor, with symptoms depending on where it lodges. Laryngomalacia is a common congenital cause, presenting at around 4 weeks.