Spotting

I’ve never spotted before and I honestly don’t really know what it is. But I went to the bathroom not long ago and I saw that I was bleeding, my period starts in 8 days, it wasn’t much blood and I think it stopped but I’m just kinda worried, I’ve never had random bleeding like that. Can someone tell me what spotting is?