Header Ads

Selectors



Selectors refer to the HTML elements with the styles the users want to apply to them. The
three different types of CSS selectors are as follows:


  • Type selector
  • Class selector
  • ID selector
  • Universal selector
Type Selector

A type selector simply specifies the element name along with the styles to be applied
to that element. This results in applying the specified styles to all the occurrence of that
element in a Web page. Here, the styles are specified only once for an HTML element and
are applied to all the occurrences of that element.


No comments:

Powered by Blogger.