When creating locators using CSS and XPath, the simplest form is the single attribute locator. We build the locator using the tag and/or an attribute of an element. Let's look at both WebElements and MobileElements. Keep in mind that CSS is only available for WebElements.