MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your CSS Questions & Answers Server Specific CSS knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following will select every <p> element that is the only child of its parent? |
| A. | :only-child |
| B. | :only-of-type |
| C. | :optional |
| D. | :out-of-range |
| Answer» B. :only-of-type | |
| 2. |
Which of the following selects every <p> element that has no children? |
| A. | :empty |
| B. | :enabled |
| C. | :checked |
| D. | :disabled |
| Answer» B. :enabled | |
| 3. |
Which of the following selects every <a> element whose href attribute value contains the given substring? |
| A. | attribute$=value |
| B. | attribute*=value |
| C. | attribute^=value |
| D. | attribute|=value |
| Answer» C. attribute^=value | |
| 4. |
Which of the following selects all <div> elements and all <p> elements? |
| A. | element,element |
| B. | element+element |
| C. | element,element |
| D. | element element |
| Answer» D. element element | |