
JS-DOM
Authored by Lương Văn
Instructional Technology
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Có bao nhiêu loại node trong DOM? Liệt kê chúng.
2 - Text và Attribute
3 - Element, Text và Attribute
4 - Document, Element, Text và Comment
5 - Document, Element, Text, Comment và Attribute
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách truy cập vào một phần tử trong DOM bằng JavaScript là gì?
getById()
getElement()
querySelector()
getElementById()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách truy cập vào tất cả các phần tử con của một phần tử trong DOM là gì?
querySelectorAll()
getElementsByClass()
childNodes()
getElementsByTagName()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách thêm một phần tử mới vào DOM bằng JavaScript là gì?
createNode()
createElement()
addElement()
appencChild()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách loại bỏ một phần tử từ DOM bằng JavaScript là gì?
deleteElement()
removeChild()
remove()
removeNode()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức querySelector và querySelectorAll trong JavaScript được sử dụng để làm gì?
Lấy ra tất cả các phần tử con theo lớp
Lấy ra phần tử đầu tiên hoặc tất cả các phần tử con theo id
Lấy ra tất cả các phần tử con theo thẻ
Lấy ra phần tử đầu tiên hoặc tất cả các phần tử phù hợp với một bộ chọn CSS
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách thay đổi nội dung của một phần tử trong DOM bằng JavaScript là gì?
element.text
element.value
element.innerHTML
element.content
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?