DOM-Intro

DOM-Intro

Professional Development

5 Qs

quiz-placeholder

Similar activities

coding contest

coding contest

Professional Development

10 Qs

JavaScript DOM

JavaScript DOM

Professional Development

5 Qs

IT ENGLISH: Research Project Topics - XHTML and XML

IT ENGLISH: Research Project Topics - XHTML and XML

Professional Development

10 Qs

Html quiz

Html quiz

9th Grade - Professional Development

10 Qs

HTML_2

HTML_2

Professional Development

9 Qs

DECI - Week 11 - round

DECI - Week 11 - round

Professional Development

10 Qs

Web Development Workshop

Web Development Workshop

University - Professional Development

10 Qs

L1_M5_W1_Q3

L1_M5_W1_Q3

Professional Development

3 Qs

DOM-Intro

DOM-Intro

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Re:Coded Org

Used 9+ times

FREE Resource

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()