If you are ever caught in a building that is on fire, you are naturally going to be in a very panicked state of mind. Surrounded by fire, animal instincts can kick in, and while these may seem like a very adequate response considering you are in a fight or flight scenario, it can actually do your body a lot of harm. This is because if you panic you are going to start breathing a great deal faster, and this would lead to some serious problems since you would be surrounded by smoke. You could end up hypoxic, unable to think clearly due to the lack of oxygen in the atmosphere. This would make you think less clearly, thus making it more difficult for you to get out of the situation.
If you are in building where there is a fire, the first thing you need to do is drop to the ground. There will be more oxygen here, and since heat tends to move upwards rather than downwards the temperature would be more comfortable here as well. Once you have dropped, you need to avoid crawling. This is because crawling would expose the skin of your hands and feet to the hot floor for a prolonged period of time which can cause burns. Instead, you should try to roll towards the nearest exit. Rolling prevents your skin from touching the hot floor for an extended period of time.
If you want to get information about fire safety, you need to visit a fire safety class. You can learn more here, and you can use this information to teach other people about the dangers that fires can present as well. It is important to learn as much as possible about fire safety since you never know when you might be in a fire.