Abdullah Rashid
abdullah@example.com
Navigation
📚 Courses 🏆 Leaderboard ✨ AI Tools
←
CSS Selectors Quiz - Medium Level
⏱ 15:00
Quit
0 / 20 answered
0%
CSS Selectors Quiz - Medium Level
10 questions · Medium difficulty · 00:20:00 min
🔥 In Progress
Question 1
Which selector selects elements that have a specified attribute, regardless of its value?
Question 2
What does the selector a[href$='.pdf'] target?
Question 3
Which selector matches elements whose attribute value contains a whole word separated by spaces?
Question 4
What is the difference between [attr|=value] and [attr^=value]?
Question 5
Which selector selects all <p> elements that are direct children of a <div>?
Question 6
What does the general sibling combinator (~) select?
Question 7
Which selector targets the paragraph immediately following a heading (h2)?
Question 8
What does :nth-child(2n+1) select?
Question 9
Which pseudo-class matches an element only if it is the last of its type among its siblings?
Question 10
How does :nth-of-type() differ from :nth-child()?
Question 11
Which pseudo-class selects form input elements that are required but currently empty and valid?
Question 12
What does :not(div.intro) select?
Question 13
Which pseudo-class matches the checkbox state where the checkbox is selected?
Question 14
What is the correct order of the three parts of the :first-line pseudo-element styling rule?
Question 15
Which statement about ::before and ::after is TRUE?
Question 16
What does ::selection style?
Question 17
Which of the following selector combinations has the HIGHEST specificity?
Question 18
What is the specificity of the selector ul li.item:nth-child(2)?
Question 19
Which selector targets the element being dragged OR a text selection made by the user during a drag operation?
Question 20
Which selector correctly targets all anchor elements that are unvisited links AND have the class 'external'?
✅ Answered: 0
⬜ Unanswered: 8
📊 20% done