Are You a CSS Selector Pro?

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What does the selector 'E[attr*=“str”]' select?

  • An E element whose 'attr' attribute is equal to 'str'
  • An E element whose 'attr' attribute contains 'str' (correct)
  • An E element whose 'attr' attribute ends with 'str'
  • An E element whose 'attr' attribute begins with 'str'

What does the selector 'E:last-child' select?

  • An E element, last sibling of its type
  • An E element, first child of its parent
  • An E element, first sibling of its type
  • An E element, last child of its parent (correct)

What does the selector 'E:empty' select?

  • An E element that has an F child
  • An E element that matches one of selectors s1,s2,..
  • An E element that does not match selectors s1,s2,..
  • An E element that has no children (correct)

Flashcards are hidden until you start studying

More Like This

Are You a CSS Background Pro?
15 questions
Are You a CSS Background Pro?
3 questions
Are You a Security Pro?
9 questions
Are You a Sukkah-Building Pro?
10 questions
Use Quizgecko on...
Browser
Browser