Different ways to write the transitions and transforms in image tag using HTML & CSS. Part-2

In this blog, I am creating the transitions and transforms in image tags using HTML & CSS. So, Let’s create an index.html & style.css below-

Tagged : / / / / /

How to Use Pseudo-classes in CSS?

A pseudo-class is used to define a special state of an element.

Syntax:-

selector:pseudo-class { property:value; }

Ex: –

div:hover { background-color: red;}

Pseudo-classes

  • :link
  • :visited
  • :hover
  • :active
  • :focus
  • :checked
  • :first-child
  • :first-of-type
  • :nth-child(n)
Tagged : / / / / / / / / / /

How to use Link Property in CSS?

When you use the “<a>” tag on your HTML page then show text color automatic blue & underline. If you want to implement in your tag using CSS then implement the below property-

Ex:-

a:link {
color: red;
}

a:hover MUST come after a:link and a:visited

a:active MUST come after a:hover

Tagged : / / / / /