← Quiz: Locators: all 10 questions
Quiz: Locators · Question 7 of 10
Which CSS selector finds an input whose name starts with "pass"?
Which CSS selector finds an input whose name starts with "pass"?
- A.input[name*='pass']
- B.input[name^='pass']
- C.input[name$='pass']
- D.input#pass
Answer & explanation
Correct answer: input[name^='pass']
^= means starts with, *= means contains and $= means ends with.
Can you get the rest right without peeking?
Take the timed Quiz: Locators quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →