Explain the three main ways to target elements.



Explain the three main ways to target elements...

Answer / hrpynux@gmail.com

Type selectors (e.g. h1 ) and pseudo-elements (e.g. ::before )
Class selectors (e.g. . nav-item ), attributes selectors (e.g. [type="radio"] ) and pseudo-classes (e.g. :hover )
ID selectors (e.g. #example )

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CSS Cascading Style Sheets Interview Questions

What is the use of css opacity?

0 Answers  


Explain css3 animations?

0 Answers  


What is CSS Box Model and what are its elements?

0 Answers  


How do I remove underline from text?

0 Answers  


How to center align a div inside another div?

1 Answers  






How do you control image repetition using css?

0 Answers  


Why important is bad css?

0 Answers  


What is the syntax of word wrap in css3?

0 Answers  


What are the different media types allowed by css?

0 Answers  


What is the use of a pseudo class? Explain with the help of an example?

0 Answers  


What is linear-gradient() used in css3?

0 Answers  


What are the disadvantages of embedded style sheets?

0 Answers  


Categories