Those small black dots that appear on your legs, particularly after you’ve shaved are known as strawberry legs.
According to Healthline, strawberry legs occur when oil, dirt and bacteria get caught in your skin’s pores or hair follicles. When you shave your legs, air oxidises the oil that gets trapped in your pores causing them to darken.