Which CSS selector targets elements based on their class?
- #class
- .class
- class
- element.class
The correct selector to target elements based on their class is .class. It is a fundamental selector in CSS for styling specific elements with a given class.
Loading...
Related Quiz
- Which tool is often used to automate the building and testing stages in CI/CD pipelines?
- The process of rearranging the elements of an array such that all the elements less than the pivot are on its left and all the elements greater than the pivot are on its right is called _______.
- A popular configuration management tool used for infrastructure as code is _______.
- Which of the following elements is used to define a table row in HTML?
- In which phase of the SDLC are software requirements documented?