Question: what is tagname in selenium?
Answer: A tagName is a part of a DOM structure where every element on a page is been defined via tag like input tag, button tag, anchor tag, etc. Each tag has multiple attributes like ID, name, value class, etc. As far as other locators in Selenium are concerned, we used these attributes values of the tag to locate elements.