Keeping all distractions at bay is very important no matter how you learn online or offline. You can start by making sure that your television is switched off. Attending online classes in a quiet and isolated study room having a bench and table with no mattresses around can help you better in focusing on your classes.