Locators purpose is to identify an HTML element on a web page that Selenium would interact with like, Identifier, Name, Link, DOM, CSS, etc.
Do check out the Selenium training from Intellipaat, which includes 45 hrs of online training, and 7 guided projects to practice and gain hands-on experience.
Also, check out our YouTube video on Selenium training to get more insight.