Here is the most important step in this whole path — the one firefighters beg every family to learn. In a fire, smoke rises and the air near the floor stays cleaner and cooler longer. If you ever must move through smoke: get low, crawl, and go.
Every home needs two ways out of every room and a family meeting point outside — and the rule with no exceptions: once out, stay out. Nobody goes back for toys, pets or anything else; tell the firefighters, whose gear exists for exactly that job.
Feel a door with the back of your hand before opening it: hot door means fire beyond — use the other way out. And smoke alarms are the night watch: they shout while everyone sleeps, which is when their warning matters most. Test them monthly; it takes ten seconds.