Have a dedicated work area. If possible, pick somewhere in your house where you can get away from noise and distractions. Ideally, your space will be well lit, comfortable and quiet. Going to the same space every day will help build a routine.
Before the start of your class download the program your class will be using and get familiar with it. Go through all the features and make sure you understand how to use it. Also, make sure your computer's speakers and camera are working properly. Doing this beforehand will ensure a quick and seamless transition to online learning.
Learning online makes it easier to be tempted by distractions. Treat your online class as you would a face to face one. Keep the tv off, or better yet set yourself up in a room that doesn't have one. Close any unneeded web-browsers, and set your phone on silent. If your phone is a big distraction, turn the data off so you won't be tempted to browse social media. Try and keep your focus on your teacher as you would in a classroom.
To make the most out of online learning make sure you are participating. This will help you absorb what the teacher is saying and it helps you to stay focused. When you are participating the concepts will become more clear and anything you don't understand will become evident. Your class time is a great way to get real-time answers from your professor.