Samantha is an entrepreneur and her company website has the following links: Home, About Us, Careers, Contact Us. She wishes to vary their appearance whenever they are visited or clicked. Samantha wants the color of Home to turn yellow when she moves the pointer over it. Identify the pseudo-class that should be used to perform this function.A. ​:link
B. ​:hover
C. ​:active
D. ​:visited

Respuesta :

Option B

​:hover the pseudo-class that should be used to perform this function.

Explanation:

A CSS pseudo-class is a keyword attached to a selector that designates a specific state of the chosen element(s). The :hover pseudo-class is applied to style an element when the user’s pointer is over it. It mustn’t be limited to links, although that is the usual fair use case.

a:hover must appear after a:link and a:visited in the CSS definition to be powerful. It should resemble third in order (subsequent the :visited pseudo-class). Pseudo-class names are not case-sensitive. The syntax is

a:hover {

   color: blue;

}