What Are the Pseudo Classes on <A> Tags?
Submitted by: AdministratorPseudo classes are classes used by Web browsers to differentiate statuses of a HTML tag. CSS definitions can use pseudo classes as selectors with a leading colon like (:visited). There are 3 pseudo classes on the <A> tag:
► A:link - A hyper link that has not been visited.
► A:visited - A hyper link that has been visited before.
► A:active - A hyper link that is currently under the mouse pointer.
If you want to the alter the default style sheets of the browser, you could define something like this:
/* show un-visited links in blue */
A:link {color: blue}
/* show visited links in yellow */
A:visited {color: yellow}
/* change background color gray when mouse over links */
A:active {background-color: gray}
Submitted by: Administrator
► A:link - A hyper link that has not been visited.
► A:visited - A hyper link that has been visited before.
► A:active - A hyper link that is currently under the mouse pointer.
If you want to the alter the default style sheets of the browser, you could define something like this:
/* show un-visited links in blue */
A:link {color: blue}
/* show visited links in yellow */
A:visited {color: yellow}
/* change background color gray when mouse over links */
A:active {background-color: gray}
Submitted by: Administrator
Read Online Cascading Style Sheet CSS Job Interview Questions And Answers
Top Cascading Style Sheet CSS Questions
☺ | How To Set Different Text Fonts Inside Tables in CSS? |
☺ | What Is Inline Element in CSS? |
☺ | What Is the HTML Element Formatting Model in CSS? |
☺ | What Is CSS (Cascading Style Sheets)? |
☺ | What Are the Formatting Behaviors of HTML Elements? |
Top Top World Wide Web Categories
☺ | Cascading Style Sheet CSS Interview Questions. |
☺ | HTML5 Interview Questions. |
☺ | Basic Internet Interview Questions. |
☺ | Domain Name System (DNS) Interview Questions. |
☺ | JavaScript Interview Questions. |