Summarize this article:

Poor sleep habits can greatly diminish your attention span. If you're not getting enough sleep, you'll find yourself becoming more forgetful and struggling to focus. Work on prioritizing quality sleep in order to increase your attention span.  Stick to a sleep schedule, even on the weekends. Your body has a natural circadian rhythm that will adapt to a regular sleep/wake cycle. Strive to go to bed and wake up at the same time each day.  Have a bedtime ritual you follow each night. If you, say, take a warm shower each night before bed, your body will recognize this as a signal that it's time to wind down and sleep. Make sure your sleeping arrangements are comfortable. Get rid of any beds, pillows, or other objects in your bedroom that you dislike. If you're a high stress person by nature, this can have a negative impact on your attention span. Learning to better manage your reactions to stressors can help you increase your attention span overall.  Identify the stressors in your life and look at where you could cut back. You may be pushing yourself too much. Identify a few obligations that you can drop to give yourself more free time to relax.  Talk to others when you're feeling stressed instead of bottling up your feelings. Socializing can help relieve stress. However, avoid anyone who contributes to your overall stress. If you're hungry, you're likely to lose focus. Work on eating during the day in order to cut back on stress. If you feel hungry, grab a healthy snack like an apple or some nuts. Snacking when you feel hungry will help you increase your overall focus, as hunger pangs won't distract you. Go for something like nuts, fruits, vegetables, or lean proteins. Less healthy foods, such as chips and processed carbs, can cause a dip in energy. This can decrease your overall focus. Being exposed to nature can help you unwind and relaxed, allowing you to recharge. This can prevent you from losing focus longterm. Being outside tends to raise people's attention spans.  Try going for a walk or a hike when you have free time. Even small exposures to nature, such as looking at trees through your window, can increase your attention span.

Summary:
Improve your sleep. Learn to manage stress. Eat throughout the day. Get outdoors more often.