Skills101
← All practice quizzes

Quiz: DOM and Events

5 questionsNo time limitPass: 60%+10 XP on first pass

Select elements, change text and styles, create elements, handle clicks and form submissions, use event delegation, and build a small to-do app.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which method returns the FIRST element matching a CSS selector?

  2. Question 2

    Why call event.preventDefault() in a form submit handler?

  3. Question 3

    Why is setting innerHTML from user input risky?

  4. Question 4

    Event delegation relies on which behaviour?

  5. Question 5

    Which event fires on every keystroke in a text input?