DOM-Intro

DOM-Intro

Professional Development

5 Qs

quiz-placeholder

Similar activities

HTML_2

HTML_2

Professional Development

9 Qs

Web Development Workshop

Web Development Workshop

University - Professional Development

10 Qs

L1_W17_Q3

L1_W17_Q3

Professional Development

3 Qs

VETDSSC34

VETDSSC34

KG - Professional Development

9 Qs

Guía 6 html

Guía 6 html

Professional Development

10 Qs

C4 W3 D1 QUESTIONS

C4 W3 D1 QUESTIONS

Professional Development

10 Qs

Programming Knowledge Quiz (Medium)

Programming Knowledge Quiz (Medium)

5th Grade - Professional Development

10 Qs

Flipped Classroom on CSS

Flipped Classroom on CSS

Professional Development

10 Qs

DOM-Intro

DOM-Intro

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Re:Coded Org

Used 9+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What can you use to find HTML elements and connect them to js? (Select all that apply)

IDs

Tags

Class names

Any Attribute

Content

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What functions can we use to find HTML elements? (Select all that apply)

document.getElementById()

document.querySelector()

document.querySelectorAll()

document.findElements()

document.getElementSById()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

document.getElementsByTagName() returns ...

A single HTML element with the Tag name

All HTML elements with the Tag name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the code in the image. To get the value of data-theme, what function are going to use?

Note: dataBox is the name of the variable that connects to this HTML element.

dataBox.getAttribute("data-theme")

dataBox.Attributes["data-theme"]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When we want to access all HTML elements with the class name "bg-red", what function do we use?

document.getElementsByClassName("bg-red")

document.getElementsByClassNameAll("bg-red")

document.getAllElementsByClassName("bg-red")

document.getElementsByClassName("bg-red").all()