What is type selector?

What is type selector?

As the name suggests, type selectors are used to select certain types. They will select any HTML element on a page that matches the selector, regardless of their position in the document tree. This can make it easier to select certain HTML elements rather than manually searching for them throughout the document.

The Type selector is one of the possibilities of CSS Attribute Selectors. There are many different types of selectors that can be used such as universal selector, descendant selector, class selector, etc.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.